Commit 94dace8c authored by Gioh Kim's avatar Gioh Kim Committed by Jens Axboe

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: default avatarGioh Kim <gi-oh.kim@ionos.com>
Signed-off-by: default avatarJack Wang <jinpu.wang@ionos.com>
Link: https://lore.kernel.org/r/20210726115950.470543-2-jinpu.wang@ionos.comSigned-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 2bc1f6e4
...@@ -271,7 +271,7 @@ static bool rnbd_rerun_if_needed(struct rnbd_clt_session *sess) ...@@ -271,7 +271,7 @@ static bool rnbd_rerun_if_needed(struct rnbd_clt_session *sess)
*/ */
if (cpu_q) if (cpu_q)
*cpup = cpu_q->cpu; *cpup = cpu_q->cpu;
put_cpu_var(sess->cpu_rr); put_cpu_ptr(sess->cpu_rr);
if (q) if (q)
rnbd_clt_dev_requeue(q); rnbd_clt_dev_requeue(q);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment