]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
[SCSI] Retry ADD_TO_MLQUEUE return value for EH commands
authorHannes Reinecke <hare@suse.de>
Thu, 17 Sep 2009 15:00:26 +0000 (17:00 +0200)
committerJames Bottomley <James.Bottomley@suse.de>
Fri, 2 Oct 2009 14:46:11 +0000 (09:46 -0500)
commit6e883b0e42739aa560133cfaf41be1138c51a500
tree5e9acebafddb6500a50e4586e6d76b907a9d1a0f
parente27168f8c337b12b8aa8d59c3123c79d2f83603d
[SCSI] Retry ADD_TO_MLQUEUE return value for EH commands

A target reset when I/O is ongoing might result
an eventual device offline, as scsi_eh_completed_normally()
might return ADD_TO_MLQUEUE in addition to the
advertised SUCCESS, FAILED, and NEEDS_RETRY.

Which is unfortunate as scsi_send_eh_cmnd() will
therefore map ADD_TO_MLQUEUE to FAILED instead of
the more appropriate NEEDS_RETRY.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Cc: Stable Tree <stable@kernel.org>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/scsi_error.c