From: Eric Sandeen <sandeen@sandeen.net>
To: "Nathaniel W. Turner" <nate@houseofnate.net>
Cc: xfs@oss.sgi.com
Subject: Re: XFS_BUF_ORDERED instead of XFS_BUF_ISORDERED?
Date: Mon, 25 Aug 2008 18:16:16 -0500 [thread overview]
Message-ID: <48B33D40.6020104@sandeen.net> (raw)
In-Reply-To: <48B32E36.7060305@houseofnate.net>
Nathaniel W. Turner wrote:
> Hi folks,
>
> While doing a little light reading, I noticed the following in
> fs/xfs/xfs_log.c:1011 (in the 2.6.26.3 Linux kernel tree). Am I missing
> something, or should XFS_BUF_ORDERED be replaced with XFS_BUF_ISORDERED
> in this check?
>
> nate
>
>
> /*
> * If the ordered flag has been removed by a lower
> * layer, it means the underlyin device no longer supports
> * barrier I/O. Warn loudly and turn off barriers.
> */
> if ((l->l_mp->m_flags & XFS_MOUNT_BARRIER) &&
> !XFS_BUF_ORDERED(bp)) {
> l->l_mp->m_flags &= ~XFS_MOUNT_BARRIER;
> xfs_fs_cmn_err(CE_WARN, l->l_mp,
> "xlog_iodone: Barriers are no longer
> supported"
> " by device. Disabling barriers\n");
> xfs_buftrace("XLOG_IODONE BARRIERS OFF", bp);
> }
>
>
wow, I think you're right.
Fortunately I dont' think this does much harm in most cases - the buffer
is usually ordered here anyway, and we're re-setting it instead of
testing it, as you noticed. But it's making this whole
dynamic-lack-of-barrier detection pointless/broken.
modest proposal: change the macro (and friends) to XFS_BUF_SETORDERED
or somesuch. :)
-Eric
next prev parent reply other threads:[~2008-08-25 23:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-25 22:12 XFS_BUF_ORDERED instead of XFS_BUF_ISORDERED? Nathaniel W. Turner
2008-08-25 23:16 ` Eric Sandeen [this message]
2008-08-26 2:09 ` Dave Chinner
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=48B33D40.6020104@sandeen.net \
--to=sandeen@sandeen.net \
--cc=nate@houseofnate.net \
--cc=xfs@oss.sgi.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.