nbd: cleanup workqueue on error properly
authorJosef Bacik <jbacik@fb.com>
Wed, 15 Feb 2017 21:49:48 +0000 (16:49 -0500)
committerJens Axboe <axboe@fb.com>
Tue, 21 Feb 2017 19:51:54 +0000 (12:51 -0700)
commit6330a2d0b465527d621a9d95cad6b2fc0a959f13
tree712b302631d0413574af5ab3242e3be9fae2bd89
parente544541b0765c341174613b416d4b074fa7571c2
nbd: cleanup workqueue on error properly

If we fail to register the blockdev we need to make sure to destroy the
recv workqueue.

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