[SCSI] fix the return value of scsi_target_queue_read()
authorHillf Danton <dhillf@gmail.com>
Thu, 16 Dec 2010 20:26:37 +0000 (14:26 -0600)
committerJames Bottomley <James.Bottomley@suse.de>
Tue, 21 Dec 2010 18:37:28 +0000 (12:37 -0600)
commitfd01a6632da253210c3dbc7814bc6eceda96623d
treed3dff6d44978a54f4c6272c570a478740db9f8c8
parentdb422318cbca55168cf965f655471dbf8be82433
[SCSI] fix the return value of scsi_target_queue_read()

It seems that zero should be returned if scsi_target_is_busy(starget) is
true, no matter if sdev is on the starved list.

Signed-off-by: Hillf Danton <dhillf@gmail.com>
Reviewed-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/scsi_lib.c