diff options
author | ZiyangZhang <ZiyangZhang@linux.alibaba.com> | 2022-09-23 23:39:13 +0800 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-09-23 19:09:56 -0600 |
commit | ae3f719300816865489abd44c91c821859daa26f (patch) | |
tree | 761cee497cefdf8f0d64b2031241e73611af7fa1 /drivers/block/zram | |
parent | 4324796ed0d140bac7a07fc2189bc3c3c3752978 (diff) |
ublk_drv: check 'current' instead of 'ubq_daemon'
This check is not atomic. So with recovery feature, ubq_daemon may be
modified simultaneously by recovery task. Instead, check 'current' is
safe here because 'current' never changes.
Also add comment explaining this check, which is really important for
understanding recovery feature.
Signed-off-by: ZiyangZhang <ZiyangZhang@linux.alibaba.com>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20220923153919.44078-2-ZiyangZhang@linux.alibaba.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block/zram')
0 files changed, 0 insertions, 0 deletions