]> err.no Git - linux-2.6/commit
[SCSI] libsas: don't treat underrun as an error on SMP tasks
authorJames Bottomley <James.Bottomley@HansenPartnership.com>
Sat, 29 Dec 2007 17:49:53 +0000 (11:49 -0600)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Sat, 12 Jan 2008 00:29:12 +0000 (18:29 -0600)
commit2d4b63e1505b317d4253cee3f2970792ec6d41cb
treea0b0ec862dfd20ecc33393e014396c7427074a52
parentb98e66fa0b687149dc3b26179096dc542c7d5001
[SCSI] libsas: don't treat underrun as an error on SMP tasks

All SMP tasks sent through bsg generate messages like:

sas: smp_execute_task: task to dev 500605b000001450 response: 0x0 status 0x81

Three times (because the task gets retried).  Firstly, don't retry
either overrun or underrun (the data buffer isn't going to change size)
and secondly, just report the underrun but don't set an error for it.
This is necessary so bsg can report back the residual.

Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/libsas/sas_expander.c