diff options
author | Christoph Hellwig <hch@infradead.org> | 2011-11-08 08:56:15 +0000 |
---|---|---|
committer | Alex Elder <aelder@sgi.com> | 2011-11-08 10:48:23 -0600 |
commit | 810627d9a6d0e8820c798001875bc4e1b7754ebf (patch) | |
tree | 1ebd7b3919f78d117d7ec8b6ec78615e01210448 /fs | |
parent | 272e42b215c52d32e06bf035c1f6b70baa6716bd (diff) | |
download | talos-op-linux-810627d9a6d0e8820c798001875bc4e1b7754ebf.tar.gz talos-op-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) |