linux/include
Paul Clements 7fdfd4065c NBD: allow hung network I/O to be cancelled
Allow NBD I/O to be cancelled when a network outage occurs.  Previously, I/O
would just hang, and if enough I/O was hung in nbd, the system (at least
user-level) would completely hang until a TCP timeout (default, 15 minutes)
occurred.

The patch introduces a new ioctl NBD_SET_TIMEOUT that allows a transmit
timeout value (in seconds) to be specified.  Any network send that exceeds the
timeout will be cancelled and the nbd connection will be shut down.  I've
tested with various timeout values and 6 seconds seems to be a good choice for
the timeout.  If the NBD_SET_TIMEOUT ioctl is not called, you get the old (I/O
hang) behavior.

Signed-off-by: Paul Clements <paul.clements@steeleye.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-10-17 08:42:55 -07:00
..
acpi ACPI: CONFIG_ACPI_SLEEP=n power off regression in 2.6.23-rc8 (NOT in rc7) 2007-09-25 17:58:52 -04:00
asm-alpha cleanup floppy.h 2007-10-17 08:42:55 -07:00
asm-arm cleanup floppy.h 2007-10-17 08:42:55 -07:00
asm-arm26 softlockup: make asm/irq_regs.h available on every platform 2007-10-17 08:42:47 -07:00
asm-avr32 remove strict ansi check from __u64 in asm/types.h 2007-10-17 08:42:53 -07:00
asm-blackfin remove strict ansi check from __u64 in asm/types.h 2007-10-17 08:42:53 -07:00
asm-cris remove strict ansi check from __u64 in asm/types.h 2007-10-17 08:42:53 -07:00
asm-frv remove strict ansi check from __u64 in asm/types.h 2007-10-17 08:42:53 -07:00
asm-generic unexport asm/shmparam.h 2007-10-17 08:42:47 -07:00
asm-h8300 remove strict ansi check from __u64 in asm/types.h 2007-10-17 08:42:53 -07:00
asm-ia64 Add vmcoreinfo 2007-10-17 08:42:54 -07:00
asm-m32r remove strict ansi check from __u64 in asm/types.h 2007-10-17 08:42:53 -07:00
asm-m68k cleanup floppy.h 2007-10-17 08:42:55 -07:00
asm-m68knommu kill DECLARE_MUTEX_LOCKED 2007-10-17 08:42:47 -07:00
asm-mips cleanup floppy.h 2007-10-17 08:42:55 -07:00
asm-parisc cleanup floppy.h 2007-10-17 08:42:55 -07:00
asm-powerpc cleanup floppy.h 2007-10-17 08:42:55 -07:00
asm-ppc cleanup floppy.h 2007-10-17 08:42:55 -07:00
asm-s390 remove strict ansi check from __u64 in asm/types.h 2007-10-17 08:42:53 -07:00
asm-sh cleanup floppy.h 2007-10-17 08:42:55 -07:00
asm-sh64 remove strict ansi check from __u64 in asm/types.h 2007-10-17 08:42:53 -07:00
asm-sparc cleanup floppy.h 2007-10-17 08:42:55 -07:00
asm-sparc64 cleanup floppy.h 2007-10-17 08:42:55 -07:00
asm-um uml: style fixes in FP code 2007-10-16 09:43:07 -07:00
asm-v850 remove strict ansi check from __u64 in asm/types.h 2007-10-17 08:42:53 -07:00
asm-x86 cleanup floppy.h 2007-10-17 08:42:55 -07:00
asm-xtensa remove strict ansi check from __u64 in asm/types.h 2007-10-17 08:42:53 -07:00
crypto [CRYPTO] sha: Add header file for SHA definitions 2007-10-10 16:55:50 -07:00
keys
linux NBD: allow hung network I/O to be cancelled 2007-10-17 08:42:55 -07:00
math-emu Fix <math-emu/soft-fp.h> tpyo 2007-08-18 17:15:17 -07:00
media v4l: copy_to_user() is not a good method name 2007-10-13 09:58:59 -07:00
mtd
net [IPV6]: Replace sk_buff ** with sk_buff * in input handlers 2007-10-15 12:50:28 -07:00
pcmcia pcmcia: use DMA_MASK_NONE for the default for all pcmcia devices 2007-10-16 09:42:50 -07:00
rdma IB/cm: Modify interface to send MRAs in response to duplicate messages 2007-10-09 19:59:17 -07:00
rxrpc
scsi do not export /usr/include/scsi in make headers_install 2007-10-17 08:42:52 -07:00
sound [ALSA] version 1.0.15 2007-10-16 16:57:46 +02:00
video pm2fb: hardware cursor support for the Permedia2 2007-10-16 09:43:18 -07:00
xen xen: xen/page.h compile fix 2007-07-26 11:35:16 -07:00
Kbuild do not export /usr/include/scsi in make headers_install 2007-10-17 08:42:52 -07:00