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:
committed by
Alex Elder
parent
272e42b215
commit
810627d9a6
@@ -189,7 +189,7 @@ xfs_end_io(
|
|||||||
int error = 0;
|
int error = 0;
|
||||||
|
|
||||||
if (XFS_FORCED_SHUTDOWN(ip->i_mount)) {
|
if (XFS_FORCED_SHUTDOWN(ip->i_mount)) {
|
||||||
error = -EIO;
|
ioend->io_error = -EIO;
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
if (ioend->io_error)
|
if (ioend->io_error)
|
||||||
|
Reference in New Issue
Block a user