All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ric Wheeler <rwheeler@redhat.com>
To: device-mapper development <dm-devel@redhat.com>
Subject: Fwd: MD/DM and barriers (was Re: [patch] ext2/3: document conditions when reliable operation is possible)
Date: Thu, 27 Aug 2009 13:13:18 -0400	[thread overview]
Message-ID: <4A96BEAE.5000504@redhat.com> (raw)

fyi - end of a very long thread, but I thought that dm had this fixed...

ric


-------- Original Message --------
Subject: 	MD/DM and barriers (was Re: [patch] ext2/3: document 
conditions when reliable operation is possible)
Date: 	Thu, 27 Aug 2009 12:54:05 -0400
From: 	Jeff Garzik <jeff@garzik.org>
To: 	Ric Wheeler <rwheeler@redhat.com>
CC: 	Theodore Tso <tytso@mit.edu>, Rob Landley <rob@landley.net>, Pavel 
Machek <pavel@ucw.cz>, Florian Weimer <fweimer@bfk.de>, Goswin von 
Brederlow <goswin-v-b@web.de>, kernel list 
<linux-kernel@vger.kernel.org>, Andrew Morton <akpm@osdl.org>, 
mtk.manpages@gmail.com, rdunlap@xenotime.net, linux-doc@vger.kernel.org, 
linux-ext4@vger.kernel.org, corbet@lwn.net



On 08/27/2009 09:10 AM, Ric Wheeler wrote:
>  One thing that does need fixing for some MD configurations is to stress
>  again that we need to make sure that barrier operations are properly
>  supported or users will need to disable the write cache on devices with
>  volatile write caches.

Agreed; chime in on Christoph's linux-vfs thread if people have input.

I quickly glanced at MD and DM.  Currently, upstream, we see a lot of

         if (unlikely(bio_barrier(bio))) {
                 bio_endio(bio, -EOPNOTSUPP);
                 return 0;
         }

in DM and MD make_request functions.

Only md/raid1 supports barriers at present, it seems.  None of the other
MD drivers support barriers.

DM has some barrier code...  but the above code was pasted from DM's
make_request function, so I am guessing that DM's barrier stuff is
incomplete and disabled at present.

I've been mentioning this issue for years... glad some people finally
noticed :)

	Jeff




                 reply	other threads:[~2009-08-27 17:13 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=4A96BEAE.5000504@redhat.com \
    --to=rwheeler@redhat.com \
    --cc=dm-devel@redhat.com \
    /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.