WSL2-Linux-Kernel/drivers/block
Mike Miller 491539982a cciss: read config to obtain max outstanding commands per controller
This patch changes the way we determine the maximum number of outstanding
commands for each controller.

Most Smart Array controllers can support up to 1024 commands, the notable
exceptions are the E200 and E200i.

The next generation of controllers which were just added support a mode of
operation called Zero Memory Raid (ZMR).  In this mode they only support
64 outstanding commands.  In Full Function Raid (FFR) mode they support
1024.

We have been setting the queue depth by arbitrarily assigning some value
for each controller.  We needed a better way to set the queue depth to
avoid lots of annoying "fifo full" messages.  So we made the driver a
little smarter.  We now read the config table and subtract 4 from the
returned value.  The -4 is to allow some room for ioctl calls which are
not tracked the same way as io commands are tracked.

Please consider this for inclusion.

Signed-off-by: Mike Miller <mike.miller@hp.com>
Cc: Jens Axboe <jens.axboe@oracle.com>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-07-04 10:40:09 -07:00
..
aoe block: avoid duplicate calls to get_part() in disk stat code 2008-05-07 10:15:46 +02:00
paride
DAC960.c
DAC960.h
Kconfig
Makefile
amiflop.c m68k: Return -ENODEV if no device is found 2008-05-18 13:28:50 -07:00
ataflop.c
brd.c Add 'rd' alias to new brd ramdisk driver 2008-06-05 14:23:12 -07:00
cciss.c cciss: read config to obtain max outstanding commands per controller 2008-07-04 10:40:09 -07:00
cciss.h
cciss_cmd.h
cciss_scsi.c
cciss_scsi.h
cpqarray.c
cpqarray.h
cryptoloop.c
floppy.c
ida_cmd.h
ida_ioctl.h
loop.c
nbd.c Merge branch 'for-linus' of git://git.kernel.dk/linux-2.6-block 2008-04-29 08:18:03 -07:00
pktcdvd.c Merge branch 'for-linus' of git://git.kernel.dk/linux-2.6-block 2008-04-29 08:18:03 -07:00
ps3disk.c
smart1,2.h
sunvdc.c
swim3.c
sx8.c
ub.c ub: Cosmetics 2008-05-02 10:25:52 -07:00
umem.c
umem.h
viodasd.c [POWERPC] iSeries: Remove unused mail address 2008-05-23 16:45:04 +10:00
virtio_blk.c virtio_blk: allow read-only disks 2008-05-30 15:09:44 +10:00
xd.c
xd.h
xen-blkfront.c
xsysace.c
z2ram.c m68k: Return -ENODEV if no device is found 2008-05-18 13:28:50 -07:00