android_kernel_xiaomi_sm8350/drivers
Robert Jennings 3c887e8a1a [SCSI] ibmvscsi: Prevent IO during partner login
By setting the request_limit in send_srp_login to 1 we allowed login
requests to be sent to the server adapter.  If this was not an initial
login, but was a login after a disconnect with the server, other I/O
requests could attempt to be processed before the login occured.  These
I/O requests would fail, sometimes resulting in filesystems getting
marked read-only.

To address this we can set the request_limit to 0 while doing the login
and add an exception where login requests, along with task management
events, are always passed to the server.

There is a case where the request_limit had already reached 0 would result
in all events being sent rather than returning SCSI_MLQUEUE_HOST_BUSY; this
has also been fixed by this patch.

Signed-off-by: Robert Jennings <rcj@linux.vnet.ibm.com>
Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
2007-11-03 12:10:36 -05:00
..
acorn/char
acpi Fix /proc/acpi/alarm BCD alarm encodings 2007-10-25 15:08:03 -07:00
amba
ata Merge branch 'sg' of git://git.kernel.dk/linux-2.6-block 2007-10-25 15:44:54 -07:00
atm Eliminate pointless casts from void* in a few driver irq handlers. 2007-10-23 19:53:16 -04:00
auxdisplay
base memory hotplug: rearrange memory hotplug notifier 2007-10-22 08:13:17 -07:00
block ub: add sg_init_table for sense and read capacity commands 2007-10-25 09:17:03 +02:00
bluetooth
cdrom SG: audit of drivers that use blk_rq_map_sg() 2007-10-24 13:21:21 +02:00
char drivers/char/riscom8: clean up irq handling 2007-10-23 19:53:17 -04:00
clocksource
connector
cpufreq
cpuidle
crypto [CRYPTO] users: Fix up scatterlist conversion errors 2007-10-27 00:52:07 -07:00
dca
dio
dma
edac
eisa
firewire firewire: fw-ohci: shut up a superfluous compiler warning 2007-10-22 19:48:56 +02:00
firmware
hid
hwmon
i2c
ide ide: build fix 2007-10-23 09:49:29 +02:00
ieee1394 SG: Change sg_set_page() to take length and offset argument 2007-10-24 11:20:47 +02:00
infiniband SG: Change sg_set_page() to take length and offset argument 2007-10-24 11:20:47 +02:00
input [PARPORT] Remove unused 'irq' argument from parport irq functions 2007-10-23 19:53:16 -04:00
isdn ISDN/sc: fix longstanding warning 2007-10-24 05:16:25 -04:00
kvm Consolidate host virtualization support under Virtualization menu 2007-10-23 15:49:47 +10:00
leds
lguest lguest: documentation update 2007-10-25 15:02:50 +10:00
macintosh
mca
md [CRYPTO] users: Fix up scatterlist conversion errors 2007-10-27 00:52:07 -07:00
media SG: Change sg_set_page() to take length and offset argument 2007-10-24 11:20:47 +02:00
message SG: audit of drivers that use blk_rq_map_sg() 2007-10-24 13:21:21 +02:00
mfd
misc
mmc mmc_spi: Fix mmc-over-spi regression 2007-10-27 14:47:20 +02:00
mtd Eliminate pointless casts from void* in a few driver irq handlers. 2007-10-23 19:53:16 -04:00
net [CRYPTO] users: Fix up scatterlist conversion errors 2007-10-27 00:52:07 -07:00
nubus
of
oprofile
parisc parisc: fix sg_page() fallout 2007-10-23 09:49:31 +02:00
parport [PARPORT] Remove unused 'irq' argument from parport irq functions 2007-10-23 19:53:16 -04:00
pci jmicron: update quirk for JMB361/3/5/6 2007-10-23 21:20:02 -04:00
pcmcia
pnp
power Merge git://git.infradead.org/battery-2.6 2007-10-22 19:20:52 -07:00
ps3
rapidio
rtc
s390 SG: Change sg_set_page() to take length and offset argument 2007-10-24 11:20:47 +02:00
sbus
scsi [SCSI] ibmvscsi: Prevent IO during partner login 2007-11-03 12:10:36 -05:00
serial serial: stop passing NULL to functions that expect data 2007-10-25 12:18:40 -07:00
sh
sn
spi
ssb
tc
telephony
uio
usb USB: open disconnect race in usblcd 2007-10-25 12:18:46 -07:00
video
virtio Virtio helper routines for a descriptor ringbuffer implementation 2007-10-23 15:49:55 +10:00
w1
watchdog [WATCHDOG] AR7: watchdog timer 2007-10-23 20:35:13 +00:00
xen
zorro
Kconfig Virtio interface 2007-10-23 15:49:54 +10:00
Makefile Merge master.kernel.org:/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6 2007-10-23 16:37:29 -07:00