Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 810627d9 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Alex Elder
Browse files

xfs: fix force shutdown handling in xfs_end_io



Ensure ioend->io_error gets propagated back to e.g. AIO completions.

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarAlex Elder <aelder@sgi.com>
parent 272e42b2
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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)