xfs: fix force shutdown handling in xfs_end_io
authorChristoph Hellwig <hch@infradead.org>
Tue, 8 Nov 2011 08:56:15 +0000 (08:56 +0000)
committerAlex Elder <aelder@sgi.com>
Tue, 8 Nov 2011 16:48:23 +0000 (10:48 -0600)
Ensure ioend->io_error gets propagated back to e.g. AIO completions.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Alex Elder <aelder@sgi.com>
fs/xfs/xfs_aops.c

index 33b13310ee0c2f2ddf0c68abaa57e95c7f47d963..574d4ee9b6253ea3d589f23288aa7385907642bb 100644 (file)
@@ -189,7 +189,7 @@ xfs_end_io(
        int             error = 0;
 
        if (XFS_FORCED_SHUTDOWN(ip->i_mount)) {
-               error = -EIO;
+               ioend->io_error = -EIO;
                goto done;
        }
        if (ioend->io_error)