aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_log.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/xfs_log.c')
-rw-r--r--fs/xfs/xfs_log.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/fs/xfs/xfs_log.c b/fs/xfs/xfs_log.c
index 9bfb69e1e885..db09e1ea5cf3 100644
--- a/fs/xfs/xfs_log.c
+++ b/fs/xfs/xfs_log.c
@@ -949,6 +949,19 @@ xlog_iodone(xfs_buf_t *bp)
949 l = iclog->ic_log; 949 l = iclog->ic_log;
950 950
951 /* 951 /*
952 * If the ordered flag has been removed by a lower
953 * layer, it means the underlyin device no longer supports
954 * barrier I/O. Warn loudly and turn off barriers.
955 */
956 if ((l->l_mp->m_flags & XFS_MOUNT_BARRIER) && !XFS_BUF_ORDERED(bp)) {
957 l->l_mp->m_flags &= ~XFS_MOUNT_BARRIER;
958 xfs_fs_cmn_err(CE_WARN, l->l_mp,
959 "xlog_iodone: Barriers are no longer supported"
960 " by device. Disabling barriers\n");
961 xfs_buftrace("XLOG_IODONE BARRIERS OFF", bp);
962 }
963
964 /*
952 * Race to shutdown the filesystem if we see an error. 965 * Race to shutdown the filesystem if we see an error.
953 */ 966 */
954 if (XFS_TEST_ERROR((XFS_BUF_GETERROR(bp)), l->l_mp, 967 if (XFS_TEST_ERROR((XFS_BUF_GETERROR(bp)), l->l_mp,