nbd: stop using the bdev everywhere
authorJosef Bacik <josef@toxicpanda.com>
Thu, 6 Apr 2017 21:01:59 +0000 (17:01 -0400)
committerJens Axboe <axboe@fb.com>
Mon, 17 Apr 2017 15:58:42 +0000 (09:58 -0600)
commit29eaadc0364943b6352e8994158febcb699c9f9b
tree89efaa7c6c95185f73bac682265cba3368192e1d
parent5ea8d10802ec4c153a6e21eebaf412e2abd29736
nbd: stop using the bdev everywhere

In preparation for the upcoming netlink interface we need to not rely on
already having the bdev for the NBD device we are doing operations on.
Instead of passing the bdev around, just use it in places where we know
we already have the bdev.

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