From: Mike Christie Date: Wed, 6 Mar 2013 04:40:24 +0000 (-0600) Subject: [SCSI] scsi_dh_alua: fix stpg sense handling X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~95^2~34 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=27db682bf07fdc105af38827dbbd67d6f0a4ae04;p=pandora-kernel.git [SCSI] scsi_dh_alua: fix stpg sense handling For the stpg_endio path we are not evaluating the sense. The bug is that 1. The error value is set to -EIO when there is sense, so we hit the first error check and always return SCSI_DH_IO. 2. h->senselen is set to zero in submit_stpg. It is not later set to req->sense_len like in the synchrounous exection paths, so we must check the req->sense_len field. Signed-off-by: Mike Christie Signed-off-by: James Bottomley --- Reading git-diff-tree failed