]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] fix propogation of integrity errors
authorMike Christie <michaelc@cs.wisc.edu>
Mon, 28 Sep 2009 20:50:52 +0000 (15:50 -0500)
committerJames Bottomley <James.Bottomley@suse.de>
Thu, 29 Oct 2009 17:03:27 +0000 (13:03 -0400)
commit98150bbe7aa1d507102061ed832cce59150d6dd6
treeaf5b75c5991ce3e932607d105f1019b9d237a7af
parent064fb56420609694056f05720417e6b959d858bb
[SCSI] fix propogation of integrity errors

When the Integrity check is done in scsi_io_completion it will
set error to -EILSEQ. However, at this point error is no longer
used, and blk_end_request_err has -EIO hardcoded.

It looks like there was just porting mistake with this patch
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=f81617ee494807d579e29adb165eaf79d3c2787e
and we meant to send error upwards, so this patch changes the hard
coded EIO to the error variable.

I have only boot tested this patch.

Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Acked-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/scsi_lib.c