From: "Randy.Dunlap" <rddunlap@osdl.org>
To: Mark Lord <lkml@rtr.ca>
Cc: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org
Subject: Re: BUG: SCSI SYNCHRONIZE_CACHE on driver unload
Date: Thu, 5 Aug 2004 15:48:26 -0700 [thread overview]
Message-ID: <20040805154826.633ff4cd.rddunlap@osdl.org> (raw)
In-Reply-To: <4112BC7A.1040102@rtr.ca>
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
next prev parent reply other threads:[~2004-08-05 23:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-05 23:02 Mark Lord
2004-08-05 22:48 ` Randy.Dunlap [this message]
2004-08-05 23:13 ` Mark Lord
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040805154826.633ff4cd.rddunlap@osdl.org \
--to=rddunlap@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=lkml@rtr.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome