diff options
author | Josef Bacik <josef@toxicpanda.com> | 2019-10-21 15:56:27 -0400 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-10-25 14:20:01 -0600 |
commit | de6346ecbc8f5591ebd6c44ac164e8b8671d71d7 (patch) | |
tree | 29206df9d14ff000d222bfa0c25c574e5917a1bb /drivers/gpu | |
parent | 2b2ed9750fc9d040b9f6d076afcef6f00b6f1f7c (diff) | |
download | linux-de6346ecbc8f5591ebd6c44ac164e8b8671d71d7.tar.gz linux-de6346ecbc8f5591ebd6c44ac164e8b8671d71d7.tar.bz2 linux-de6346ecbc8f5591ebd6c44ac164e8b8671d71d7.zip |
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/gpu')
0 files changed, 0 insertions, 0 deletions