]> git.baikalelectronics.ru Git - kernel.git/commit
nbd: add a flag to destroy an nbd device on disconnect
authorJosef Bacik <josef@toxicpanda.com>
Thu, 6 Apr 2017 21:02:07 +0000 (17:02 -0400)
committerJens Axboe <axboe@fb.com>
Mon, 17 Apr 2017 15:58:42 +0000 (09:58 -0600)
commitf3e73138d0e909917d511bcb9cd005f31c5be1fc
tree93693ce1eb0141806a19c307b92b6d5e11bbab0e
parent3c01eb3334068ed515bc52cd77bacb0460956462
nbd: add a flag to destroy an nbd device on disconnect

For ease of management it would be nice for users to specify that the
device node for a nbd device is destroyed once it is disconnected and
there are no more users.  Add a client flag and enable this operation to
happen.

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