Skip to content

Commit 94dace8

Browse files
Gioh Kimaxboe
authored andcommitted
block/rnbd-clt: Use put_cpu_ptr after get_cpu_ptr
This patch replaces put_cpu_var with put_cpu_ptr because get_cpu_ptr should be paired with put_cpu_ptr. Signed-off-by: Gioh Kim <[email protected]> Signed-off-by: Jack Wang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
1 parent 2bc1f6e commit 94dace8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/block/rnbd/rnbd-clt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ static bool rnbd_rerun_if_needed(struct rnbd_clt_session *sess)
271271
*/
272272
if (cpu_q)
273273
*cpup = cpu_q->cpu;
274-
put_cpu_var(sess->cpu_rr);
274+
put_cpu_ptr(sess->cpu_rr);
275275

276276
if (q)
277277
rnbd_clt_dev_requeue(q);

0 commit comments

Comments
 (0)