commit | 00c78dee7f5e4ffa7cfba4e51e363a163dd89320 | [log] [tgz] |
---|---|---|
author | Josef Bacik <josef@toxicpanda.com> | Mon Oct 21 12:31:01 2019 -0400 |
committer | Josef Bacik <josef@toxicpanda.com> | Mon Oct 21 12:32:53 2019 -0400 |
tree | 9134a70de9553ab7d3f49ed283eb12f9d504178d | |
parent | 9c7eddf1b080f98fed1aadb74fe784f29bf77a08 [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. Signed-off-by: Josef Bacik <josef@toxicpanda.com>