Commit 810627d9a6d0e8820c798001875bc4e1b7754ebf

Authored by Christoph Hellwig
Committed by Alex Elder
1 parent 272e42b215

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -189,7 +189,7 @@
189 189 int error = 0;
190 190  
191 191 if (XFS_FORCED_SHUTDOWN(ip->i_mount)) {
192   - error = -EIO;
  192 + ioend->io_error = -EIO;
193 193 goto done;
194 194 }
195 195 if (ioend->io_error)