From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: bzolnier@milosz.na.pl
Cc: Alan Cox <alan@redhat.com>,
torvalds@osdl.org, axboe@suse.dk,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
akpm@osdl.org
Subject: Re: PATCH: fix the barrier IDE detection logic
Date: Fri, 03 Sep 2004 15:05:16 +0100 [thread overview]
Message-ID: <1094220315.7923.9.camel@localhost.localdomain> (raw)
In-Reply-To: <200409031554.31057.bzolnier@elka.pw.edu.pl>
On Gwe, 2004-09-03 at 14:54, Bartlomiej Zolnierkiewicz wrote:
> I think that logic is reversed here, I guess it should be: enable barrier
> if user enables wcache and disable it if user disables wcache.
Thinking about it from the drive side. If the drive wcache is off then
you have barrier semantics anyway.
So the logic is something like
has-flush cache-on barrier semantics
no-flush cache-on random semantics
no-flush cache-off barrier semantics
(the barrier itself is a nop)
> > + /* Now we have barrier awareness we can be properly conservative
> > + by default with other drives. We turn off write caching when
> > + barrier is not available. Users can adjust this at runtime if
>
> This is not true because there is a check for flush cache in write_cache().
>
> I agree that disabling write cache by default is a good thing but user
> should be informed about this fact (ideally there also should be easily
> available FAQ somewhere) otherwise we will get a lot of bogus bugreports
> about decreased performance...
Agreed. Unfortunately a lot of users are getting burned by journalling
fs's and IDE write caching. As the caches get bigger the risk gets
bigger. SCSI turns it off (and prints a message) so I'd rather see the
write_cache() changed to something like "write_cache_verbose()" and the
printk done than the issue ignored for longer.
Alan
next prev parent reply other threads:[~2004-09-03 15:09 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-31 16:50 PATCH: fix the barrier IDE detection logic Alan Cox
2004-09-03 13:54 ` Bartlomiej Zolnierkiewicz
2004-09-03 14:05 ` Alan Cox [this message]
2004-09-03 15:10 ` Jens Axboe
2004-09-03 15:08 ` Jens Axboe
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=1094220315.7923.9.camel@localhost.localdomain \
--to=alan@lxorguk.ukuu.org.uk \
--cc=akpm@osdl.org \
--cc=alan@redhat.com \
--cc=axboe@suse.dk \
--cc=bzolnier@milosz.na.pl \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.