Re: BUG: SCSI SYNCHRONIZE_CACHE on driver unload

From: Randy.Dunlap
Date: Thu Aug 05 2004 - 18:11:01 EST


On Thu, 05 Aug 2004 19:02:18 -0400 Mark Lord wrote:

| On module removal of a SCSI Low-Level Driver (LLD),
| the mid-layer tries to do a SYNCHRONIZE_CACHE
| command to each device on each host of that driver.
|
| But the command is issued *after* setting SHOST_CANCEL,
| which means that scsi_dispatch_cmd() will *always*
| fail the command inline, without passing to the LLD.
|
| This bug shows up only for hosts/drives which support
| a write-back caching scheme. For the more common
| write-thru scheme, the SYNCHRONIZE_CACHE command is
| never issued, so the bug never manifests.

Like this, when I unmount a zip drive (?):

Synchronizing SCSI cache for disk sde: <4>FAILED
status = 0, message = 00, host = 1, driver = 00

--
~Randy
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/