aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/linux-2.6/xfs_super.c
diff options
context:
space:
mode:
authorDavid Chinner <dgc@sgi.com>2007-05-14 04:24:23 -0400
committerTim Shimmin <tes@chook.melbourne.sgi.com>2007-10-15 02:23:45 -0400
commit0bfefc46dc028df60120acdb92062169c9328769 (patch)
treece8cecb3f4546300c0d193efa27bf14f78170b3b /fs/xfs/linux-2.6/xfs_super.c
parentc1561cf463f4a480d1960e833c8fe628207b24e4 (diff)
[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>
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_super.c')
-rw-r--r--fs/xfs/linux-2.6/xfs_super.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/fs/xfs/linux-2.6/xfs_super.c b/fs/xfs/linux-2.6/xfs_super.c
index 491d1f4f202d..17ad5e463710 100644
--- a/fs/xfs/linux-2.6/xfs_super.c
+++ b/fs/xfs/linux-2.6/xfs_super.c
@@ -304,14 +304,6 @@ xfs_mountfs_check_barriers(xfs_mount_t *mp)
304 return; 304 return;
305 } 305 }
306 306
307 if (mp->m_ddev_targp->bt_bdev->bd_disk->queue->ordered ==
308 QUEUE_ORDERED_NONE) {
309 xfs_fs_cmn_err(CE_NOTE, mp,
310 "Disabling barriers, not supported by the underlying device");
311 mp->m_flags &= ~XFS_MOUNT_BARRIER;
312 return;
313 }
314
315 if (xfs_readonly_buftarg(mp->m_ddev_targp)) { 307 if (xfs_readonly_buftarg(mp->m_ddev_targp)) {
316 xfs_fs_cmn_err(CE_NOTE, mp, 308 xfs_fs_cmn_err(CE_NOTE, mp,
317 "Disabling barriers, underlying device is readonly"); 309 "Disabling barriers, underlying device is readonly");