]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
nbd: don't shutdown sock with irq's disabled
authorJosef Bacik <jbacik@fb.com>
Thu, 8 Sep 2016 19:33:38 +0000 (12:33 -0700)
committerJens Axboe <axboe@fb.com>
Thu, 8 Sep 2016 20:01:34 +0000 (14:01 -0600)
commitc261189862c6f65117eb3b1748622a08ef49c262
tree17af2c3ead2f500d34264bf78551b9c520efa472
parentfd8383fd88a2fd842a9431df5ed353bd7129eecc
nbd: don't shutdown sock with irq's disabled

We hit a warning when shutting down the nbd connection because we have irq's
disabled.  We don't really need to do the shutdown under the lock, just clear
the nbd->sock.  So do the shutdown outside of the irq.  This gets rid of the
warning.

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