summaryrefslogtreecommitdiff
path: root/drivers/block/rbd.c
diff options
context:
space:
mode:
authorJosef Bacik <josef@toxicpanda.com>2019-10-21 15:56:27 -0400
committerJens Axboe <axboe@kernel.dk>2019-10-25 14:20:01 -0600
commitde6346ecbc8f5591ebd6c44ac164e8b8671d71d7 (patch)
tree29206df9d14ff000d222bfa0c25c574e5917a1bb /drivers/block/rbd.c
parent2b2ed9750fc9d040b9f6d076afcef6f00b6f1f7c (diff)
nbd: protect cmd->status with cmd->lock
We already do this for the most part, except in timeout and clear_req. For the timeout case we take the lock after we grab a ref on the config, but that isn't really necessary because we're safe to touch the cmd at this point, so just move the order around. For the clear_req cause this is initiated by the user, so again is safe. Reviewed-by: Mike Christie <mchristi@redhat.com> Signed-off-by: Josef Bacik <josef@toxicpanda.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block/rbd.c')
0 files changed, 0 insertions, 0 deletions