diff options
author | Josef Bacik <josef@toxicpanda.com> | 2017-04-06 17:02:04 -0400 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2017-04-17 09:58:42 -0600 |
commit | 560bc4b39952ed77cdb0000992e9415b0ee89edb (patch) | |
tree | 0caccc78ca51712357d01f781addf324c7eb0e8e /include | |
parent | 2516ab1543fdd1f9d08385d73cae51f668a9f3dc (diff) |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/uapi/linux/nbd-netlink.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/nbd-netlink.h b/include/uapi/linux/nbd-netlink.h index b69105cc8eea..c2209c75626c 100644 --- a/include/uapi/linux/nbd-netlink.h +++ b/include/uapi/linux/nbd-netlink.h @@ -32,6 +32,7 @@ enum { NBD_ATTR_SERVER_FLAGS, NBD_ATTR_CLIENT_FLAGS, NBD_ATTR_SOCKETS, + NBD_ATTR_DEAD_CONN_TIMEOUT, __NBD_ATTR_MAX, }; #define NBD_ATTR_MAX (__NBD_ATTR_MAX - 1) |