]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[XFS] Disable queue flag test in barrier check.
authorEric Sandeen <sandeen@sandeen.net>
Fri, 18 Jul 2008 07:12:18 +0000 (17:12 +1000)
committerNiv Sardi <xaiki@debian.org>
Mon, 28 Jul 2008 06:59:26 +0000 (16:59 +1000)
commitdeeb5912db12e8b7ccf3f4b1afaad60bc29abed9
treea348dab8dc552802e12c824bad287c8a6672ebf4
parent9f8868ffb39c2f80ba69df4552cb530b6634f646
[XFS] Disable queue flag test in barrier check.

md raid1 can pass down barriers, but does not set an ordered flag on the
queue, so xfs does not even attempt a barrier write, and will never use
barriers on these block devices.

Remove the flag check and just let the barrier write test determine
barrier support.

A possible risk here is that if something does not set an ordered flag and
also does not properly return an error on a barrier write... but if it's
any consolation jbd/ext3/reiserfs never test the flag, and don't even do a
test write, they just disable barriers the first time an actual journal
barrier write fails.

SGI-PV: 983924

SGI-Modid: xfs-linux-melb:xfs-kern:31377a

Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Signed-off-by: Tim Shimmin <tes@sgi.com>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
fs/xfs/linux-2.6/xfs_super.c