From: Hannes Reinecke Date: Thu, 25 Apr 2013 06:10:00 +0000 (+0200) Subject: [SCSI] Handle MLQUEUE busy response in scsi_send_eh_cmnd X-Git-Tag: v3.10-rc1~3^2~1^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc73648a5026dcf228aadc6ab8ca4b868d91c159;p=pandora-kernel.git [SCSI] Handle MLQUEUE busy response in scsi_send_eh_cmnd scsi_send_eh_cmnd() is calling queuecommand() directly, so it needs to check the return value here. The only valid return codes for queuecommand() are 'busy' states, so we need to wait for a bit to allow the LLDD to recover. Based on an earlier patch from Wen Xiong. [jejb: fix confusion between msec and jiffies values and other issues] [bvanassche: correct stall_for interval] Cc: Wen Xiong Cc: Brian King Signed-off-by: Hannes Reinecke Signed-off-by: James Bottomley --- Reading git-diff-tree failed