Skip to content

Commit 1f125e7

Browse files
Christoph Lameterhtejun
authored andcommitted
md: Replace __this_cpu_ptr with raw_cpu_ptr
__this_cpu_ptr is being phased out. Signed-off-by: Christoph Lameter <cl@linux.com> Signed-off-by: Tejun Heo <tj@kernel.org>
1 parent 903ceff commit 1f125e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/md/dm-stats.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ void dm_stats_account_io(struct dm_stats *stats, unsigned long bi_rw,
548548
* A race condition can at worst result in the merged flag being
549549
* misrepresented, so we don't have to disable preemption here.
550550
*/
551-
last = __this_cpu_ptr(stats->last);
551+
last = raw_cpu_ptr(stats->last);
552552
stats_aux->merged =
553553
(bi_sector == (ACCESS_ONCE(last->last_sector) &&
554554
((bi_rw & (REQ_WRITE | REQ_DISCARD)) ==

0 commit comments

Comments
 (0)