From: Darrick J. Wong Date: Fri, 26 Jan 2007 22:08:52 +0000 (-0800) Subject: [SCSI] libsas: Handle SCSI commands that complete with failure codes X-Git-Tag: v2.6.21-rc1~274^2~230^2~51 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad689233bee854dced741c91aff12a8771a22f6f;p=pandora-kernel.git [SCSI] libsas: Handle SCSI commands that complete with failure codes This patch moves the code that handles SAS failures out of the main EH function and into a separate function. It also detects commands that have no sas_task (i.e. they completed, but with error data) and sends them into scsi_error for processing. This allows us to handle SCSI errors (and enables auto-spinup as a side effect) instead of dropping them on the floor and falling into an infinite loop. It also requires the implementation of a device reset function, which the SAS failure code has been modified to employ for REQ_DEVICE_RESET. Signed-off-by: Darrick J. Wong Signed-off-by: James Bottomley --- Reading git-diff-tree failed