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>
This commit is contained in:
Christoph Hellwig 2011-11-08 08:56:15 +00:00 committed by Alex Elder
parent 272e42b215
commit 810627d9a6

View 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)