From: James Bottomley Date: Thu, 1 Apr 2010 14:30:01 +0000 (-0400) Subject: [SCSI] sd: retry read_capacity on UNIT_ATTENTION X-Git-Tag: v2.6.35-rc1~470^2^2~100 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3233ac19811fe17033b537832ca7b59df8bf4aa9;p=pandora-kernel.git [SCSI] sd: retry read_capacity on UNIT_ATTENTION Hazard testing uncovered yet another bug in sd. Under heavy reset activity the retry counter might be exhausted and the command will be returned with sense UNIT_ATTENTION/0x29/00 (POWER ON, RESET, OR BUS DEVICE RESET OCCURRED). In those cases we should just increase the retry counter again, retrying one more to clear up this Unit Attention state. [jejb: update to work with RC16 devices and not to loop endlessly] Signed-off-by: Hannes Reinecke Signed-off-by: James Bottomley --- Reading git-diff-tree failed