فهرست منبع

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>
Christoph Hellwig 13 سال پیش
والد
کامیت
810627d9a6
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      fs/xfs/xfs_aops.c

+ 1 - 1
fs/xfs/xfs_aops.c

@@ -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)