diff options
author | ZiyangZhang <[email protected]> | 2022-09-23 23:39:13 +0800 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2022-09-23 19:09:56 -0600 |
commit | ae3f719300816865489abd44c91c821859daa26f (patch) | |
tree | 761cee497cefdf8f0d64b2031241e73611af7fa1 /net/lapb/lapb_out.c | |
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 <[email protected]>
Reviewed-by: Ming Lei <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'net/lapb/lapb_out.c')
0 files changed, 0 insertions, 0 deletions