commit | 810627d9a6d0e8820c798001875bc4e1b7754ebf | [log] [tgz] |
---|---|---|
author | Christoph Hellwig <hch@infradead.org> | Tue Nov 08 08:56:15 2011 +0000 |
committer | Alex Elder <aelder@sgi.com> | Tue Nov 08 10:48:23 2011 -0600 |
tree | 1ebd7b3919f78d117d7ec8b6ec78615e01210448 | |
parent | 272e42b215c52d32e06bf035c1f6b70baa6716bd [diff] [blame] |
xfs: fix force shutdown handling in xfs_end_io 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>
diff --git a/fs/xfs/xfs_aops.c b/fs/xfs/xfs_aops.c index 33b13310..574d4ee 100644 --- a/fs/xfs/xfs_aops.c +++ b/fs/xfs/xfs_aops.c
@@ -189,7 +189,7 @@ int error = 0; if (XFS_FORCED_SHUTDOWN(ip->i_mount)) { - error = -EIO; + ioend->io_error = -EIO; goto done; } if (ioend->io_error)