[XFS] Barriers need to be dynamically checked and switched off
authorDavid Chinner <dgc@sgi.com>
Mon, 14 May 2007 08:24:23 +0000 (18:24 +1000)
committerTim Shimmin <tes@chook.melbourne.sgi.com>
Mon, 15 Oct 2007 06:23:45 +0000 (16:23 +1000)
commit0bfefc46dc028df60120acdb92062169c9328769
treece8cecb3f4546300c0d193efa27bf14f78170b3b
parentc1561cf463f4a480d1960e833c8fe628207b24e4
[XFS] Barriers need to be dynamically checked and switched off

If the underlying block device suddenly stops supporting barriers, we need
to handle the -EOPNOTSUPP error in a sane manner rather than shutting
down the filesystem. If we get this error, clear the barrier flag, reissue
the I/O, and tell the world bad things are occurring.

SGI-PV: 964544
SGI-Modid: xfs-linux-melb:xfs-kern:28568a

Signed-off-by: David Chinner <dgc@sgi.com>
Signed-off-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Tim Shimmin <tes@sgi.com>
fs/xfs/linux-2.6/xfs_buf.c
fs/xfs/linux-2.6/xfs_super.c
fs/xfs/xfs_log.c