All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] nbd/client-connection: Fix client returning a closed channel
@ 2026-09-25 15:53 Guillaume Vincke
  2026-09-25 15:53 ` [PATCH 1/2] " Guillaume Vincke
  2026-09-25 15:53 ` [PATCH 2/2] iotests: Add coverage for NBD connect thread start delay Guillaume Vincke
  0 siblings, 2 replies; 9+ messages in thread
From: Guillaume Vincke @ 2026-09-25 15:53 UTC (permalink / raw)
  To: qemu-devel
  Cc: qemu-block, Eric Blake, Vladimir Sementsov-Ogievskiy, Kevin Wolf,
	Hanna Reitz

NBD client relies on lazy reconnection on error. There is a case where
nbd_co_establish_connection() will hand back a channel disconnected by
its peer. This leads to the request running on the dead channel. When
reconnect-delay is set to 0 (the default), this bug prevents the
nbd-connect thread from running on the first operation. This patch set
addresses this specific case.

Found while searching for a way to force client reconnection to simplify
the resize of idle nodes which will be the subject of another patch set.

Guillaume Vincke (2):
  nbd/client-connection: Fix client returning a closed channel
  iotests: Add coverage for NBD connect thread start delay

 nbd/client-connection.c                       | 35 +++++++++++
 tests/qemu-iotests/tests/nbd-stale-connection | 62 +++++++++++++++++++
 .../tests/nbd-stale-connection.out            | 17 +++++
 3 files changed, 114 insertions(+)
 create mode 100755 tests/qemu-iotests/tests/nbd-stale-connection
 create mode 100644 tests/qemu-iotests/tests/nbd-stale-connection.out


base-commit: 3876503faff51ce3a132dbbd0ab42c10f2269319
-- 
2.43.0



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2026-10-07 12:48 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-25 15:53 [PATCH 0/2] nbd/client-connection: Fix client returning a closed channel Guillaume Vincke
2026-09-25 15:53 ` [PATCH 1/2] " Guillaume Vincke
2026-09-25 21:00   ` Eric Blake
2026-09-28  8:23     ` guillaume vincke
2026-10-06 19:13       ` Eric Blake
2026-10-07 12:47         ` guillaume vincke
2026-09-25 15:53 ` [PATCH 2/2] iotests: Add coverage for NBD connect thread start delay Guillaume Vincke
2026-10-05 18:44   ` Eric Blake
2026-10-05 19:29     ` Eric Blake

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.