From: Oliver Neukum <oliver@neukum.org>
To: Hannes Reinecke <hare@suse.de>
Cc: SCSI Mailing List <linux-scsi@vger.kernel.org>
Subject: Re: question on SDEV_BLOCK vs. SDEV_QUIESCE
Date: Tue, 25 Sep 2007 09:56:17 +0200 [thread overview]
Message-ID: <200709250956.18215.oliver@neukum.org> (raw)
In-Reply-To: <46F8BBEC.4090602@suse.de>
Am Dienstag 25 September 2007 schrieb Hannes Reinecke:
> Oliver Neukum wrote:
> > Hi,
> >
> > what is the difference between these states? What function should
> > I call to block a device in order to securely flush the caches?
> >
> SDEV_BLOCK blocks _any_ commands from the midlayer; eg. if the LLDD
> is doing some internal recovery.
> SDEV_QUIESCE only blocks 'normal' data commands; others (like control
> commands) can still get through.
>
> So for flushing you should use SDEV_QUIESCE.
Thank you, that's very helpful.
Regards
Oliver
prev parent reply other threads:[~2007-09-25 7:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-25 7:34 question on SDEV_BLOCK vs. SDEV_QUIESCE Oliver Neukum
2007-09-25 7:42 ` Hannes Reinecke
2007-09-25 7:56 ` Oliver Neukum [this message]
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=200709250956.18215.oliver@neukum.org \
--to=oliver@neukum.org \
--cc=hare@suse.de \
--cc=linux-scsi@vger.kernel.org \
/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