diff options
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_buf.c')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_buf.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/fs/xfs/linux-2.6/xfs_buf.c b/fs/xfs/linux-2.6/xfs_buf.c index b0f0e58866de..8d9298c99763 100644 --- a/fs/xfs/linux-2.6/xfs_buf.c +++ b/fs/xfs/linux-2.6/xfs_buf.c | |||
@@ -997,7 +997,18 @@ xfs_buf_iodone_work( | |||
997 | xfs_buf_t *bp = | 997 | xfs_buf_t *bp = |
998 | container_of(work, xfs_buf_t, b_iodone_work); | 998 | container_of(work, xfs_buf_t, b_iodone_work); |
999 | 999 | ||
1000 | if (bp->b_iodone) | 1000 | /* |
1001 | * We can get an EOPNOTSUPP to ordered writes. Here we clear the | ||
1002 | * ordered flag and reissue them. Because we can't tell the higher | ||
1003 | * layers directly that they should not issue ordered I/O anymore, they | ||
1004 | * need to check if the ordered flag was cleared during I/O completion. | ||
1005 | */ | ||
1006 | if ((bp->b_error == EOPNOTSUPP) && | ||
1007 | (bp->b_flags & (XBF_ORDERED|XBF_ASYNC)) == (XBF_ORDERED|XBF_ASYNC)) { | ||
1008 | XB_TRACE(bp, "ordered_retry", bp->b_iodone); | ||
1009 | bp->b_flags &= ~XBF_ORDERED; | ||
1010 | xfs_buf_iorequest(bp); | ||
1011 | } else if (bp->b_iodone) | ||
1001 | (*(bp->b_iodone))(bp); | 1012 | (*(bp->b_iodone))(bp); |
1002 | else if (bp->b_flags & XBF_ASYNC) | 1013 | else if (bp->b_flags & XBF_ASYNC) |
1003 | xfs_buf_relse(bp); | 1014 | xfs_buf_relse(bp); |