]> git.baikalelectronics.ru Git - kernel.git/commit
nbd: reset the setup task for NBD_CLEAR_SOCK
authorJosef Bacik <jbacik@fb.com>
Thu, 8 Dec 2016 14:52:35 +0000 (09:52 -0500)
committerJens Axboe <axboe@fb.com>
Thu, 8 Dec 2016 22:26:57 +0000 (15:26 -0700)
commit624e17602d95187228a49b6ef3ea6bd3e35706ba
tree55689742145048a54f371b2fcf48de14735e9f17
parent8cab1f5bc58a71daaa805689133041841ee8210d
nbd: reset the setup task for NBD_CLEAR_SOCK

If an app exits before running NBD_DO_IT but after adding sockets we can
end up not being allowed to do a new nbd device.  Fix this by making
NBD_CLEAR_SOCK reset the setup_task.

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