Skip to content

Commit

Permalink
xfs: fix force shutdown handling in xfs_end_io
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Christoph Hellwig authored and Alex Elder committed Nov 8, 2011
1 parent 272e42b commit 810627d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/xfs/xfs_aops.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 810627d

Please sign in to comment.