| To: | xfs@xxxxxxxxxxx |
|---|---|
| Subject: | [PATCH 021/102] xfs: fix force shutdown handling in xfs_end_io |
| From: | Dave Chinner <david@xxxxxxxxxxxxx> |
| Date: | Thu, 23 Aug 2012 15:01:39 +1000 |
| In-reply-to: | <1345698180-13612-1-git-send-email-david@xxxxxxxxxxxxx> |
| References: | <1345698180-13612-1-git-send-email-david@xxxxxxxxxxxxx> |
From: Christoph Hellwig <hch@xxxxxxxxxxxxx>
Upstream commit: 810627d9a6d0e8820c798001875bc4e1b7754ebf
Ensure ioend->io_error gets propagated back to e.g. AIO completions.
Signed-off-by: Christoph Hellwig <hch@xxxxxx>
Reviewed-by: Alex Elder <aelder@xxxxxxx>
---
fs/xfs/linux-2.6/xfs_aops.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/xfs/linux-2.6/xfs_aops.c b/fs/xfs/linux-2.6/xfs_aops.c
index 4ff2404..2426ecd 100644
--- a/fs/xfs/linux-2.6/xfs_aops.c
+++ b/fs/xfs/linux-2.6/xfs_aops.c
@@ -222,7 +222,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)
--
1.7.10
|
| Previous by Date: | [PATCH 011/102] xfs: XFS_TRANS_SWAPEXT is not a valid flag for, Dave Chinner |
|---|---|
| Next by Date: | [PATCH 025/102] xfs: make sure to really flush all dquots in xfs_qm_quotacheck, Dave Chinner |
| Previous by Thread: | [PATCH 011/102] xfs: XFS_TRANS_SWAPEXT is not a valid flag for, Dave Chinner |
| Next by Thread: | [PATCH 025/102] xfs: make sure to really flush all dquots in xfs_qm_quotacheck, Dave Chinner |
| Indexes: | [Date] [Thread] [Top] [All Lists] |