Skip to content

nbd: requeue request if only one connection is configured

Hou Pu linux-block 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 11 repliesIn review
  2. v12 patches 2 repliesSuperseded

Changes compared to v2 from the cover letter

Fix comments in nbd_read_stat() to be aligned with the code change suggested by Mike Christie.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2nbd: enable replace socket if only one connection is configureddrivers/block/nbd.c+9 -84 replies
2/2nbd: requeue command if the soecket is changeddrivers/block/nbd.c+10 -05 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchJosef Bacik
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] nbd: requeue request if only one connection is configured

Hello,

NBD server could be upgraded if we have multiple connections. But if we have only one connection, after we take down NBD server, all inflight IO could finally timeout and return error. These patches fix this using current reconfiguration framework.

I noticed that Mike has following patchset

nbd: local daemon restart support
https://lore.kernel.org/linux-block/[email protected]/

It add another netlink interface (NBD_ATTR_SWAP_SOCKETS) and requeue request immediately after recongirure/swap socket. It do not need to wait for timeout to fire and requeue in timeout handler, which seems more like an improvement. Let fix this in current framework first.

Changes compared to v2:
Fix comments in nbd_read_stat() to be aligned with the code change suggested by Mike Christie.

Hou Pu (2):
nbd: enable replace socket if only one connection is configured
nbd: requeue command if the soecket is changed

 drivers/block/nbd.c | 27 +++++++++++++++++++--------
 1 file changed, 19 insertions(+), 8 deletions(-)
Signature · 1 line
2.11.0