Skip to content
Snippets Groups Projects
Commit 76aa1d34 authored by Josef Bacik's avatar Josef Bacik Committed by Jens Axboe
Browse files

nbd: call nbd_bdev_reset instead of bd_set_size on disconnect


We need to make sure we don't just set the size of the bdev to 0 while
it's being used by a file system.  We have the appropriate check in
nbd_bdev_reset, simply use that helper instead.

Signed-off-by: default avatarJosef Bacik <jbacik@fb.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent fe1f9e66
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment