]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit20032ec38d1614f29c5a8e6cfc5b5326685fa99b
tree55689742145048a54f371b2fcf48de14735e9f17
parentd65cfe9094ba66b8a3c7b80823ba9229759b119d
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