]> git.baikalelectronics.ru Git - kernel.git/commit
nbd: take tx_lock before disconnecting
authorJosef Bacik <jbacik@fb.com>
Fri, 21 Jul 2017 14:48:14 +0000 (10:48 -0400)
committerJens Axboe <axboe@kernel.dk>
Sat, 22 Jul 2017 17:12:31 +0000 (11:12 -0600)
commitb4b2aeccf0f0fa1fd356cc72eeda7a2c66c39904
tree3148eaac6a1f1c885aba52de7271caec8bf2b5fc
parent2e13456fb3d3e5f462dc1e59efc04eb62df35566
nbd: take tx_lock before disconnecting

We need to take the tx_lock so we don't interleave our disconnect
request between real data going down the wire.

Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/nbd.c