summaryrefslogtreecommitdiff
path: root/fs/xfs/linux-2.6/xfs_lrw.c
diff options
context:
space:
mode:
authorDavid Chinner <dgc@sgi.com>2008-04-17 10:49:35 +0400
committerLachlan McIlroy <lachlan@redback.melbourne.sgi.com>2008-04-18 06:02:41 +0400
commitd4055947bd0913864f4d8ac96bf1197338071622 (patch)
tree260f91444acd5cc81999b08ba32dd40be4a078c0 /fs/xfs/linux-2.6/xfs_lrw.c
parent1bb7d6b5a82f1d9487fd44415484a368f7c87bed (diff)
downloadlinux-d4055947bd0913864f4d8ac96bf1197338071622.tar.xz
[XFS] Don't error out on good I/Os.
xfsbdstrat() made all I/Os error out, good or bad. Fix it. SGI-PV: 980084 SGI-Modid: xfs-linux-melb:xfs-kern:30836a Signed-off-by: David Chinner <dgc@sgi.com> Signed-off-by: Donald Douwsma <donaldd@sgi.com> Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_lrw.c')
-rw-r--r--fs/xfs/linux-2.6/xfs_lrw.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/xfs/linux-2.6/xfs_lrw.c b/fs/xfs/linux-2.6/xfs_lrw.c
index f6dab5d8944e..21c0dbc74093 100644
--- a/fs/xfs/linux-2.6/xfs_lrw.c
+++ b/fs/xfs/linux-2.6/xfs_lrw.c
@@ -885,8 +885,10 @@ xfsbdstrat(
struct xfs_buf *bp)
{
ASSERT(mp);
- if (!XFS_FORCED_SHUTDOWN(mp))
+ if (!XFS_FORCED_SHUTDOWN(mp)) {
xfs_buf_iorequest(bp);
+ return;
+ }
xfs_buftrace("XFSBDSTRAT IOERROR", bp);
xfs_bioerror_relse(bp);