From: Jens Axboe <axboe@suse.de>
To: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Cc: Doug Maxey <dwm@austin.ibm.com>, Jeff Garzik <jgarzik@pobox.com>,
Linux IDE Mailing List <linux-ide@vger.kernel.org>
Subject: Re: [RFC/PATCH 0/7] enable honoring write cache setting of IDE drive
Date: Mon, 31 Jan 2005 09:35:37 +0100 [thread overview]
Message-ID: <20050131083537.GB9446@suse.de> (raw)
In-Reply-To: <58cb370e05012811112c3c0b@mail.gmail.com>
On Fri, Jan 28 2005, Bartlomiej Zolnierkiewicz wrote:
> On Fri, 28 Jan 2005 12:16:01 -0600, Doug Maxey <dwm@austin.ibm.com> wrote:
> > Howdy!
>
> Hi,
>
> > Some IDE drives destined for use in server class or datacenter
> > machines will come with "write cache" disabled. With the current
> > code, the setting of the drive is effectively ignored, and the cache
> > is always enabled if the drive has cache.
> >
> > It is hard to define or enable certain behaviors that will keep
> > everyone happy, but hey, this is my (and a certain vendor's) take on
> > this. If you are happy with the status quo, no behavior change. If
> > the user desires to have write cache disabled by default (per the
> > drive), she can enable a more server friendly behavior.
> >
> > These patches are against BK5. No attempt has been made to integrate
> > with Jens' latest "scsi/sata write barrier" patches, but will look
> > into that when the dust has settled for both.
> >
> > With BLK_DEV_HDWC at the default of 0, the current driver behavior is
> > maintained, i.e., the drive will always use the write cache per the
> > current code. With the setting enabled, the driver will use the
> > default value of the drive write cache.
>
> We have too many config options already.
>
> Behavior should be simple:
> * no cache flushes - wcache off by default
> * cache flushes - wcache on by default
> * inform user about the wcache status
> * allow changing of wcache by user
Fully agree, there's no point in making this a config option. Then you
could add options for tens of drive options. The default should be to
leave the drive setting alone.
If ->wcache is always correct, then I don't see an issue. User space can
change the write cache setting as they please, the barrier handling
should work accordingly. Always enable barriers on the journalled fs, if
write cache is off the pre and post flushes are not sent.
--
Jens Axboe
prev parent reply other threads:[~2005-01-31 8:35 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-28 18:16 [RFC/PATCH 0/7] enable honoring write cache setting of IDE drive Doug Maxey
2005-01-28 19:11 ` Bartlomiej Zolnierkiewicz
2005-01-28 21:06 ` Doug Maxey
2005-01-28 21:35 ` Bartlomiej Zolnierkiewicz
2005-01-28 21:43 ` Doug Maxey
2005-01-28 21:49 ` Bartlomiej Zolnierkiewicz
2005-01-28 22:15 ` Doug Maxey
2005-01-28 22:32 ` Bartlomiej Zolnierkiewicz
2005-01-31 8:35 ` Jens Axboe [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=20050131083537.GB9446@suse.de \
--to=axboe@suse.de \
--cc=bzolnier@gmail.com \
--cc=dwm@austin.ibm.com \
--cc=jgarzik@pobox.com \
--cc=linux-ide@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;
as well as URLs for NNTP newsgroup(s).