scsi: ufs: skip request abort task when previous aborts failed
authorGilad Broner <gbroner@codeaurora.org>
Sat, 4 Feb 2017 00:56:40 +0000 (16:56 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 7 Feb 2017 23:04:12 +0000 (18:04 -0500)
commite0b299e36004f58f844b776df58f6882877bb18a
treef46956ba71614d7774ab7257b876ded07270e3df
parent80a94bb357813901e61f2dc80deae2015c50fdcd
scsi: ufs: skip request abort task when previous aborts failed

On certain error conditions request abort task itself might fail
when aborting a request. In such case, subsequent request aborts
should skip issuing the abort task as it is expected to fail as well,
and device reset handler will be called next.

Signed-off-by: Gilad Broner <gbroner@codeaurora.org>
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufshcd.c
drivers/scsi/ufs/ufshcd.h