[XFS] Don't error out on good I/Os.
authorDavid Chinner <dgc@sgi.com>
Thu, 17 Apr 2008 06:49:35 +0000 (16:49 +1000)
committerLachlan McIlroy <lachlan@redback.melbourne.sgi.com>
Fri, 18 Apr 2008 02:02:41 +0000 (12:02 +1000)
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>
fs/xfs/linux-2.6/xfs_lrw.c

index f6dab5d8944e7c90a559a1d57549e7239687bf24..21c0dbc74093b2bcf62971d58ff3a6b0168d27f1 100644 (file)
@@ -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);