]> git.karo-electronics.de Git - karo-tx-linux.git/commit
nbd: handle dead connections
authorJosef Bacik <josef@toxicpanda.com>
Thu, 6 Apr 2017 21:02:04 +0000 (17:02 -0400)
committerJens Axboe <axboe@fb.com>
Mon, 17 Apr 2017 15:58:42 +0000 (09:58 -0600)
commit560bc4b39952ed77cdb0000992e9415b0ee89edb
tree0caccc78ca51712357d01f781addf324c7eb0e8e
parent2516ab1543fdd1f9d08385d73cae51f668a9f3dc
nbd: handle dead connections

Sometimes we like to upgrade our server without making all of our
clients freak out and reconnect.  This patch provides a way to specify a
dead connection timeout to allow us to pause all requests and wait for
new connections to be opened.  With this in place I can take down the
nbd server for less than the dead connection timeout time and bring it
back up and everything resumes gracefully.

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