Skip to content
Commit 08ba91ee authored by Doron Roberts-Kedes's avatar Doron Roberts-Kedes Committed by Jens Axboe
Browse files

nbd: Add the nbd NBD_DISCONNECT_ON_CLOSE config flag.



If NBD_DISCONNECT_ON_CLOSE is set on a device, then the driver will
issue a disconnect from nbd_release if the device has no remaining
bdev->bd_openers.

Fix ret val so reconfigure with only setting the flag succeeds.

Reviewed-by: default avatarJosef Bacik <josef@toxicpanda.com>
Signed-off-by: default avatarDoron Roberts-Kedes <doronrk@fb.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent ce042c18
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment