xfs
[Top] [All Lists]

[PATCH 07/11] xfs: remove dead ENODEV handling in xfs_destroy_ioend

To: xfs@xxxxxxxxxxx
Subject: [PATCH 07/11] xfs: remove dead ENODEV handling in xfs_destroy_ioend
From: Christoph Hellwig <hch@xxxxxxxxxxxxx>
Date: Tue, 23 Aug 2011 04:28:09 -0400
References: <20110823082802.335389799@xxxxxxxxxxxxxxxxxxxxxx>
User-agent: quilt/0.48-1
No driver returns ENODEV from it bio completion handler, not has this
ever been documented.  Remove the dead code dealing with it.

Signed-off-by: Christoph Hellwig <hch@xxxxxx>
Reviewed-by: Dave Chinner <dchinner@xxxxxxxxxx>

Index: xfs/fs/xfs/xfs_aops.c
===================================================================
--- xfs.orig/fs/xfs/xfs_aops.c  2011-07-28 17:22:27.277106627 +0200
+++ xfs/fs/xfs/xfs_aops.c       2011-07-28 17:24:19.016501283 +0200
@@ -122,17 +122,6 @@ xfs_destroy_ioend(
                bh->b_end_io(bh, !ioend->io_error);
        }
 
-       /*
-        * Volume managers supporting multiple paths can send back ENODEV
-        * when the final path disappears.  In this case continuing to fill
-        * the page cache with dirty data which cannot be written out is
-        * evil, so prevent that.
-        */
-       if (unlikely(ioend->io_error == -ENODEV)) {
-               xfs_do_force_shutdown(ip->i_mount, SHUTDOWN_DEVICE_REQ,
-                                     __FILE__, __LINE__);
-       }
-
        xfs_ioend_wake(ip);
        mempool_free(ioend, xfs_ioend_pool);
 }

<Prev in Thread] Current Thread [Next in Thread>