diff options
author | Josef Bacik <[email protected]> | 2019-10-21 15:56:27 -0400 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2019-10-25 14:20:01 -0600 |
commit | de6346ecbc8f5591ebd6c44ac164e8b8671d71d7 (patch) | |
tree | 29206df9d14ff000d222bfa0c25c574e5917a1bb /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 2b2ed9750fc9d040b9f6d076afcef6f00b6f1f7c (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 <[email protected]>
Signed-off-by: Josef Bacik <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions