kernel_optimize_test/drivers/block
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
..
aoe aoe: remove unecessary wrapper function 2007-10-17 08:42:52 -07:00
paride [BLOCK] Get rid of request_queue_t typedef 2007-07-24 09:28:11 +02:00
amiflop.c [BLOCK] Get rid of request_queue_t typedef 2007-07-24 09:28:11 +02:00
ataflop.c [BLOCK] Get rid of request_queue_t typedef 2007-07-24 09:28:11 +02:00
cciss_cmd.h
cciss_scsi.c
cciss_scsi.h
cciss.c Merge branch 'sglist-arch' into for-linus 2007-10-16 12:29:34 +02:00
cciss.h
cpqarray.c drivers/block/cpqarray,cciss: kill unused var 2007-10-16 09:59:55 +02:00
cpqarray.h
cryptoloop.c
DAC960.c Fix "Fix DAC960 driver on machines which don't support 64-bit DMA" 2007-09-19 11:24:16 -07:00
DAC960.h Fix DAC960 driver on machines which don't support 64-bit DMA 2007-09-11 17:21:19 -07:00
floppy.c floppy: tolerate DMA channel unavailability 2007-10-17 08:42:55 -07:00
ida_cmd.h
ida_ioctl.h
Kconfig [S390] Remove obsolete recommendation for 8M ramdisk size. 2007-10-12 16:13:09 +02:00
lguest_blk.c Fixup rq_for_each_segment() indentation 2007-10-10 09:25:56 +02:00
loop.c Remove unneeded lock_kernel() in driver/block/loop.c 2007-10-17 08:42:48 -07:00
Makefile Make lguest compile with CONFIG_BLOCK=n and CONFIG_NET=n 2007-07-29 17:37:45 -07:00
nbd.c NBD: allow hung network I/O to be cancelled 2007-10-17 08:42:55 -07:00
pktcdvd.c pktcdvd: don't rely on bio_init() preserving bio->bi_destructor 2007-10-16 11:05:09 +02:00
ps2esdi.c [BLOCK] Get rid of request_queue_t typedef 2007-07-24 09:28:11 +02:00
ps3disk.c block: convert blkdev_issue_flush() to use empty barriers 2007-10-16 11:05:02 +02:00
rd.c mm: bdi init hooks 2007-10-17 08:42:45 -07:00
smart1,2.h
sunvdc.c [SUNVDC]: Use slice 0xff on VD_DISK_TYPE_DISK. 2007-08-26 18:49:07 -07:00
swim3.c [BLOCK] Get rid of request_queue_t typedef 2007-07-24 09:28:11 +02:00
sx8.c [BLOCK] Get rid of request_queue_t typedef 2007-07-24 09:28:11 +02:00
ub.c [BLOCK] Get rid of request_queue_t typedef 2007-07-24 09:28:11 +02:00
umem.c drivers/block/umem: use DRIVER_NAME where appropriate 2007-10-10 09:25:59 +02:00
umem.h drivers/block/umem: trim trailing whitespace 2007-10-10 09:25:59 +02:00
viodasd.c [POWERPC] iSeries: Move viodasd probing 2007-10-11 20:40:48 +10:00
xd.c [BLOCK] Get rid of request_queue_t typedef 2007-07-24 09:28:11 +02:00
xd.h [BLOCK] Get rid of request_queue_t typedef 2007-07-24 09:28:11 +02:00
xen-blkfront.c Fixup rq_for_each_segment() indentation 2007-10-10 09:25:56 +02:00
xsysace.c Sysace: Don't enable IRQ until after interrupt handler is registered 2007-10-10 09:26:00 +02:00
z2ram.c [BLOCK] Get rid of request_queue_t typedef 2007-07-24 09:28:11 +02:00