summaryrefslogtreecommitdiff
path: root/drivers/block/zram
diff options
context:
space:
mode:
authorZiyangZhang <ZiyangZhang@linux.alibaba.com>2022-09-23 23:39:13 +0800
committerJens Axboe <axboe@kernel.dk>2022-09-23 19:09:56 -0600
commitae3f719300816865489abd44c91c821859daa26f (patch)
tree761cee497cefdf8f0d64b2031241e73611af7fa1 /drivers/block/zram
parent4324796ed0d140bac7a07fc2189bc3c3c3752978 (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