[SCSI] fix ABORTED_COMMAND looping forever problem
authorJames Bottomley <James.Bottomley@HansenPartnership.com>
Thu, 19 Feb 2009 21:48:54 +0000 (21:48 +0000)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Sun, 22 Feb 2009 02:29:38 +0000 (20:29 -0600)
commit126c098296c8f96cf7f6ca0fdb47265ac7994f00
tree59aa713000faab4aa075a52ee2c2be4bc4d3239c
parent4034cc68157bfa0b6622efe368488d3d3e20f4e6
[SCSI] fix ABORTED_COMMAND looping forever problem

Instead of terminating after five retries, commands terminated by
ABORTED_COMMAND sense are retrying forever.  The problem was
introduced by:

commit b60af5b0adf0da24c673598c8d3fb4d4189a15ce
Author: Alan Stern <stern@rowland.harvard.edu>
Date:   Mon Nov 3 15:56:47 2008 -0500

    [SCSI] simplify scsi_io_completion()

Which introduced an error whereby ABORTED_COMMAND now gets erroneously
retried in scsi_io_completion.  Fix this by returning the behaviour
back to the default no retry.

Reported-by: Sitsofe Wheeler <sitsofe@yahoo.com>
Tested-by: Sitsofe Wheeler <sitsofe@yahoo.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/scsi_lib.c