diff options
author | Christoph Hellwig <hch@infradead.org> | 2011-11-08 09:56:15 +0100 |
---|---|---|
committer | Alex Elder <aelder@sgi.com> | 2011-11-08 17:48:23 +0100 |
commit | 810627d9a6d0e8820c798001875bc4e1b7754ebf (patch) | |
tree | 1ebd7b3919f78d117d7ec8b6ec78615e01210448 /fs | |
parent | xfs: constify xfs_item_ops (diff) | |
download | linux-810627d9a6d0e8820c798001875bc4e1b7754ebf.tar.xz linux-810627d9a6d0e8820c798001875bc4e1b7754ebf.zip |
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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/xfs/xfs_aops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_aops.c b/fs/xfs/xfs_aops.c index 33b13310ee0c..574d4ee9b625 100644 --- a/fs/xfs/xfs_aops.c +++ b/fs/xfs/xfs_aops.c @@ -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) |