mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-23 06:14:42 +08:00
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 <gi-oh.kim@ionos.com> Signed-off-by: Jack Wang <jinpu.wang@ionos.com> Link: https://lore.kernel.org/r/20210726115950.470543-2-jinpu.wang@ionos.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
2bc1f6e442
commit
94dace8c85
@ -271,7 +271,7 @@ unlock:
|
||||
*/
|
||||
if (cpu_q)
|
||||
*cpup = cpu_q->cpu;
|
||||
put_cpu_var(sess->cpu_rr);
|
||||
put_cpu_ptr(sess->cpu_rr);
|
||||
|
||||
if (q)
|
||||
rnbd_clt_dev_requeue(q);
|
||||
|
Loading…
Reference in New Issue
Block a user