From: Tejun Heo Date: Tue, 8 Aug 2006 05:08:59 +0000 (+0900) Subject: [PATCH] libata: clear sdev->locked on door lock failure X-Git-Tag: v2.6.18-rc5~123^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=22aac0896b1b0b8cabaf00714c55dd12f25d5738;p=pandora-kernel.git [PATCH] libata: clear sdev->locked on door lock failure SCSI EH locks door if sdev->locked is set. Sometimes door lock command fails continuously (e.g. when medium is not present) and as libata uses EH to acquire sense data, this easily creates a loop where a failed lock door invokes EH and EH issues lock door on completion. This patch clears sdev->locked on door lock failure to break this loop. This problem has been spotted and diagnosed by Unicorn Chang . Signed-off-by: Tejun Heo Signed-off-by: Jeff Garzik --- Reading git-diff-tree failed