diff options
author | Christoph Hellwig <hch@infradead.org> | 2011-08-23 04:28:09 -0400 |
---|---|---|
committer | Alex Elder <aelder@sgi.com> | 2011-10-11 22:15:00 -0400 |
commit | 398d25ef23b10ce75424e0336a8d059dda1dbc8d (patch) | |
tree | 41edea67ec38dba4c2da50e43bbdedb9203e8628 /fs/xfs/xfs_aops.c | |
parent | c4e1c098ee8a72ea563a697a2b175868be86fdc9 (diff) |
xfs: remove dead ENODEV handling in xfs_destroy_ioend
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@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Alex Elder <aelder@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_aops.c')
-rw-r--r-- | fs/xfs/xfs_aops.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/fs/xfs/xfs_aops.c b/fs/xfs/xfs_aops.c index 8c37dde4c521..d91564404abf 100644 --- a/fs/xfs/xfs_aops.c +++ b/fs/xfs/xfs_aops.c | |||
@@ -122,17 +122,6 @@ xfs_destroy_ioend( | |||
122 | bh->b_end_io(bh, !ioend->io_error); | 122 | bh->b_end_io(bh, !ioend->io_error); |
123 | } | 123 | } |
124 | 124 | ||
125 | /* | ||
126 | * Volume managers supporting multiple paths can send back ENODEV | ||
127 | * when the final path disappears. In this case continuing to fill | ||
128 | * the page cache with dirty data which cannot be written out is | ||
129 | * evil, so prevent that. | ||
130 | */ | ||
131 | if (unlikely(ioend->io_error == -ENODEV)) { | ||
132 | xfs_do_force_shutdown(ip->i_mount, SHUTDOWN_DEVICE_REQ, | ||
133 | __FILE__, __LINE__); | ||
134 | } | ||
135 | |||
136 | xfs_ioend_wake(ip); | 125 | xfs_ioend_wake(ip); |
137 | mempool_free(ioend, xfs_ioend_pool); | 126 | mempool_free(ioend, xfs_ioend_pool); |
138 | } | 127 | } |