xfs
[Top] [All Lists]

[PATCH 1/5] fix: force shutdown handling in xfs_end_io

To: xfs@xxxxxxxxxxx
Subject: [PATCH 1/5] fix: force shutdown handling in xfs_end_io
From: Christoph Hellwig <hch@xxxxxxxxxxxxx>
Date: Tue, 08 Nov 2011 03:56:15 -0500
References: <20111108085614.478431403@xxxxxxxxxxxxxxxxxxxxxx>
User-agent: quilt/0.48-1
Only ioend->io_error gets propagated back to e.g. AIO completions.

Signed-off-by: Christoph Hellwig <hch@xxxxxx>

---
 fs/xfs/xfs_aops.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux-2.6/fs/xfs/xfs_aops.c
===================================================================
--- linux-2.6.orig/fs/xfs/xfs_aops.c    2011-11-02 09:00:45.569119028 +0100
+++ linux-2.6/fs/xfs/xfs_aops.c 2011-11-07 12:19:22.282316090 +0100
@@ -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)

<Prev in Thread] Current Thread [Next in Thread>