LSI Logic MPT driver mapping of scsi device busy to scsi host+device busy leads to read-only ext3 fs remounts on VMware ESX Server.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux-source-2.6.20 (Ubuntu) |
Won't Fix
|
Medium
|
Unassigned | ||
linux-source-2.6.22 (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
The function mptscsih_io_done() in drivers/
A fix for this issue is present in drivers/
This address the issue of VMWare guest OS being remounted as read-only becuase the underlying device was held busy too long, , and at the same time address Engenio MPP driver concerns over infinite retries. This patch removes the code that snoops the SAM STATUS on busy, which would be returning DID_BUS_BUSY, instead we return the status as is. Retry hanlding seems to be properly handled in scsi_softirq_done, where a busy sam status would only occurr for the time specified by (cmd->allowed +1) * cmd->timeout_
Signed-off-by: Eric Moore <email address hidden>
diff -uarpN b/drivers/
--- b/drivers/
+++ a/drivers/
@@ -819,10 +819,7 @@ mptscsih_
sc->resid=0;
case MPI_IOCSTATUS_
case MPI_IOCSTATUS_
- if (scsi_status == MPI_SCSI_
- sc->result = (DID_BUS_BUSY << 16) | scsi_status;
- else
- sc->result = (DID_OK << 16) | scsi_status;
+ sc->result = (DID_OK << 16) | scsi_status;
if (scsi_state == 0) {
;
} else if (scsi_state & MPI_SCSI_
-
Changed in linux-source-2.6.22: | |
importance: | Undecided → Medium |
Changed in linux-source-2.6.20: | |
importance: | Undecided → Medium |
Thank you for taking the time to report this bug and helping to make Ubuntu better. This patch is in the current gutsy kernel release, 2.6.22-11.32. Thanks!