]> git.baikalelectronics.ru Git - kernel.git/commit
nbd: clear_sock on netlink disconnect
authorJosef Bacik <jbacik@fb.com>
Wed, 16 May 2018 18:51:20 +0000 (14:51 -0400)
committerJens Axboe <axboe@kernel.dk>
Wed, 16 May 2018 18:54:10 +0000 (12:54 -0600)
commit330120c219919f9666e5dfbe6cb7abd475a6d385
treef8259f492b7a5bbf24fa3e8c4138a09a8803f8d3
parent12e722db07cc7ff39c191960aaac7d40b25ef56c
nbd: clear_sock on netlink disconnect

This is what the ioctl based nbd disconnect does as well.  Without this
the device will just sit there and wait for the connection to go away
(or IO to occur) before the device gets torn down.  Instead clear
everything up on our end so the configuration goes away as quickly as
possible.

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