History

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.

Josef Bacik committed 9 years ago

Commit 560bc4b1 parent 2516ab12 files · +60 −4Browse files

Showing the changes to include/uapi (1 of 2 files). Show all

Unified · Split

include/uapi/linux/nbd-netlink.h+1−0
@@ -32,6 +32,7 @@ enum { · 31 unmodified lines
32 NBD_ATTR_SERVER_FLAGS,32 NBD_ATTR_SERVER_FLAGS,
33 NBD_ATTR_CLIENT_FLAGS,33 NBD_ATTR_CLIENT_FLAGS,
34 NBD_ATTR_SOCKETS,34 NBD_ATTR_SOCKETS,
35 NBD_ATTR_DEAD_CONN_TIMEOUT,
35 __NBD_ATTR_MAX,36 __NBD_ATTR_MAX,
36};37};
37#define NBD_ATTR_MAX (__NBD_ATTR_MAX - 1)38#define NBD_ATTR_MAX (__NBD_ATTR_MAX - 1)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t