From: Christoph Hellwig Date: Tue, 8 Nov 2011 08:56:15 +0000 (+0000) Subject: xfs: fix force shutdown handling in xfs_end_io X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=810627d9a6d0e8820c798001875bc4e1b7754ebf;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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 Reviewed-by: Alex Elder --- 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)