linux/drivers/target
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
..
iscsi iscsi-target: fix iscsit_del_np deadlock on unload 2014-06-27 23:23:35 -07:00
loopback scsi: use 64-bit LUNs 2014-07-17 22:07:37 +02:00
sbp
tcm_fc tcm_fc: Generate TASK_SET_FULL status for response failures 2014-06-06 14:20:51 -07:00
Kconfig
Makefile
target_core_alua.c Merge branch 'next' (accumulated 3.16 merge window patches) into master 2014-06-08 11:31:16 -07:00
target_core_alua.h
target_core_configfs.c target: Fix alua_access_state attribute OOPs for un-configured devices 2014-06-06 01:22:41 -07:00
target_core_device.c target: Fix left-over se_lun->lun_sep pointer OOPs 2014-06-26 20:56:49 -07:00
target_core_fabric_configfs.c
target_core_fabric_lib.c
target_core_file.c
target_core_file.h
target_core_hba.c
target_core_iblock.c arch: Mass conversion of smp_mb__*() 2014-04-18 14:20:48 +02:00
target_core_iblock.h
target_core_internal.h
target_core_pr.c arch: Mass conversion of smp_mb__*() 2014-04-18 14:20:48 +02:00
target_core_pr.h
target_core_pscsi.c block,scsi: fixup blk_get_request dead queue scenarios 2014-08-28 10:03:46 -06:00
target_core_pscsi.h
target_core_rd.c
target_core_rd.h
target_core_sbc.c TARGET/sbc,loopback: Adjust command data length in case pi exists on the wire 2014-06-11 13:06:50 -07:00
target_core_spc.c target: Report correct response length for some commands 2014-06-11 12:15:30 -07:00
target_core_stat.c
target_core_tmr.c
target_core_tpg.c percpu-refcount: require percpu_ref to be exited explicitly 2014-06-28 08:10:14 -04:00
target_core_transport.c Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending 2014-06-12 22:38:32 -07:00
target_core_ua.c arch: Mass conversion of smp_mb__*() 2014-04-18 14:20:48 +02:00
target_core_ua.h
target_core_xcopy.c target: cleanup some boolean tests 2014-06-06 14:21:01 -07:00
target_core_xcopy.h