]> err.no Git - linux-2.6/commitdiff
[XFS] Need to unlock the AIL before calling xfs_force_shutdown() because
authorTim Shimmin <tes@sgi.com>
Fri, 2 Sep 2005 06:52:55 +0000 (16:52 +1000)
committerNathan Scott <nathans@sgi.com>
Fri, 2 Sep 2005 06:52:55 +0000 (16:52 +1000)
when it goes to force out the log, and get the tail lsn, it will want to
get the AIL lock.

SGI-PV: 940076
SGI-Modid: xfs-linux:xfs-kern:23260a

Signed-off-by: Tim Shimmin <tes@sgi.com>
Signed-off-by: Nathan Scott <nathans@sgi.com>
fs/xfs/xfs_trans_ail.c

index 7bc5eab4c2c19cb703cb09539fe627a55383f6dd..2a71b4f91bfa1bf9a50909fde4b8a0a682b75eca 100644 (file)
@@ -379,8 +379,8 @@ xfs_trans_delete_ail(
                else {
                        xfs_cmn_err(XFS_PTAG_AILDELETE, CE_ALERT, mp,
                                "xfs_trans_delete_ail: attempting to delete a log item that is not in the AIL");
-                       xfs_force_shutdown(mp, XFS_CORRUPT_INCORE);
                        AIL_UNLOCK(mp, s);
+                       xfs_force_shutdown(mp, XFS_CORRUPT_INCORE);
                }
        }
 }