android_kernel_xiaomi_sm8350/drivers/ide
Joe Lawrence a492f07545 block,scsi: fixup blk_get_request dead queue scenarios
The blk_get_request function may fail in low-memory conditions or during
device removal (even if __GFP_WAIT is set). To distinguish between these
errors, modify the blk_get_request call stack to return the appropriate
ERR_PTR. Verify that all callers check the return status and consider
IS_ERR instead of a simple NULL pointer check.

For consistency, make a similar change to the blk_mq_alloc_request leg
of blk_get_request.  It may fail if the queue is dead, or the caller was
unwilling to wait.

Signed-off-by: Joe Lawrence <joe.lawrence@stratus.com>
Acked-by: Jiri Kosina <jkosina@suse.cz> [for pktdvd]
Acked-by: Boaz Harrosh <bharrosh@panasas.com> [for osd]
Reviewed-by: Jeff Moyer <jmoyer@redhat.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
2014-08-28 10:03:46 -06:00
..
aec62xx.c
ali14xx.c
alim15x3.c
amd74xx.c
atiixp.c
au1xxx-ide.c ide: use module_platform_driver() 2014-08-05 21:16:46 -07:00
buddha.c zorro: ZTWO_VADDR() should return "void __iomem *" 2013-11-26 11:09:07 +01:00
cmd64x.c
cmd640.c
cs5520.c
cs5530.c
cs5535.c
cs5536.c ide: cs5536: use module_pci_driver() 2013-11-14 18:21:25 -05:00
cy82c693.c
delkin_cb.c drivers/ide/delkin_cb: Convert to module_pci_driver 2013-07-10 12:09:10 -07:00
dtc2278.c
falconide.c
gayle.c ide: use dev_get_platdata() 2013-09-05 15:21:29 -04:00
hpt366.c
ht6560b.c
icside.c
ide_platform.c ide: use module_platform_driver() 2014-08-05 21:16:46 -07:00
ide-4drives.c
ide-acpi.c ACPI / bind: Move acpi_get_child() to drivers/ide/ide-acpi.c 2013-12-07 01:05:50 +01:00
ide-atapi.c
ide-cd_ioctl.c
ide-cd_verbose.c drivers: ide: Include appropriate header file in ide-cd_verbose.c 2014-01-28 23:35:09 -08:00
ide-cd.c drivers: avoid format string in dev_set_name 2013-07-03 16:07:41 -07:00
ide-cd.h
ide-cs.c
ide-devsets.c
ide-disk_ioctl.c
ide-disk_proc.c
ide-disk.c block: remove struct request buffer member 2014-04-15 14:03:02 -06:00
ide-disk.h
ide-dma-sff.c
ide-dma.c
ide-eh.c
ide-floppy_ioctl.c
ide-floppy_proc.c
ide-floppy.c
ide-floppy.h
ide-gd.c drivers: avoid format string in dev_set_name 2013-07-03 16:07:41 -07:00
ide-gd.h
ide-generic.c
ide-io-std.c
ide-io.c
ide-ioctls.c ide-disk_proc: use macro to replace magic number 2013-09-05 15:21:29 -04:00
ide-iops.c
ide-legacy.c
ide-lib.c
ide-park.c block,scsi: fixup blk_get_request dead queue scenarios 2014-08-28 10:03:46 -06:00
ide-pci-generic.c
ide-pio-blacklist.c drivers: ide: Include appropriate header file in ide-pio-blacklist.c 2014-01-28 23:35:09 -08:00
ide-pm.c
ide-pnp.c
ide-probe.c m68k/atari - ide: do not register interrupt if host->get_lock is set 2014-03-04 15:58:31 -05:00
ide-proc.c
ide-scan-pci.c
ide-sysfs.c ide: convert bus code to use dev_groups 2013-10-16 18:40:57 -07:00
ide-tape.c drivers: avoid format string in dev_set_name 2013-07-03 16:07:41 -07:00
ide-taskfile.c ide: Fix IDE PIO size calculation 2013-07-10 12:09:10 -07:00
ide-timings.c
ide-xfer-mode.c
ide.c ide: convert bus code to use dev_groups 2013-10-16 18:40:57 -07:00
it821x.c
it8172.c
it8213.c
jmicron.c
Kconfig ide: Fix SC1200 dependencies 2014-03-17 15:57:28 -04:00
macide.c
Makefile ide: Drop H8/300 driver 2013-09-16 18:19:04 -07:00
ns87415.c
opti621.c
palm_bk3710.c ide: palm_bk3710: add missing __iomem annotation 2013-09-05 15:21:29 -04:00
pdc202xx_new.c
pdc202xx_old.c
piix.c
pmac.c ide: pmac: remove unnecessary pci_set_drvdata() 2013-11-14 18:21:25 -05:00
q40ide.c
qd65xx.c
qd65xx.h
rapide.c
rz1000.c
sc1200.c
scc_pata.c
serverworks.c
setup-pci.c
sgiioc4.c ide: sgiioc4: Staticize ioc4_ide_attach_one() 2013-09-05 15:21:30 -04:00
siimage.c
sis5513.c
sl82c105.c
slc90e66.c
tc86c001.c
triflex.c
trm290.c
tx4938ide.c ide: use dev_get_platdata() 2013-09-05 15:21:29 -04:00
tx4939ide.c
umc8672.c
via82cxxx.c