1
linux/include
Paul Clements c378f70adb nbd: correct disconnect behavior
Currently, when a disconnect is requested by the user (via NBD_DISCONNECT
ioctl) the return from NBD_DO_IT is undefined (it is usually one of
several error codes).  This means that nbd-client does not know if a
manual disconnect was performed or whether a network error occurred.
Because of this, nbd-client's persist mode (which tries to reconnect after
error, but not after manual disconnect) does not always work correctly.

This change fixes this by causing NBD_DO_IT to always return 0 if a user
requests a disconnect.  This means that nbd-client can correctly either
persist the connection (if an error occurred) or disconnect (if the user
requested it).

Signed-off-by: Paul Clements <paul.clements@steeleye.com>
Acked-by: Rob Landley <rob@landley.net>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2013-07-03 16:08:05 -07:00
..
acpi
asm-generic rapidio: convert switch drivers to modules 2013-07-03 16:08:04 -07:00
clocksource
crypto
drm
dt-bindings ARM SoC driver specific changes 2013-07-02 14:33:21 -07:00
keys
linux nbd: correct disconnect behavior 2013-07-03 16:08:05 -07:00
math-emu
media
memory
misc
net
pcmcia
ras
rdma
rxrpc
scsi
sound
target
trace mm: add tracepoints for LRU activation and insertions 2013-07-03 16:07:31 -07:00
uapi ptrace: add ability to get/set signal-blocked mask 2013-07-03 16:08:01 -07:00
video
xen Main features: 2013-07-03 10:31:38 -07:00
Kbuild