]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[XFS] Fix lock inversion in forced shutdown.
authorDavid Chinner <dgc@sgi.com>
Thu, 10 Apr 2008 02:19:02 +0000 (12:19 +1000)
committerLachlan McIlroy <lachlan@redback.melbourne.sgi.com>
Fri, 18 Apr 2008 01:51:04 +0000 (11:51 +1000)
commit6b1d1a732f886936fe515d911b1a01d9cc50e179
treeecfbef2372320ebf527dc7a70100d8d208d4e078
parent4679b2d36d53ed508c956337972fbbea8db99a77
[XFS] Fix lock inversion in forced shutdown.

Recent changes to xlog_state_release_iclog() placed the grant_lock inside
the icloglock. forced unmount of the log does this the opposite way
around, but does not depend on the order for correct working. Fix the
inversion by changing the order locks are gained in
xfs_log_force_umount().

SGI-PV: 979661
SGI-Modid: xfs-linux-melb:xfs-kern:30773a

Signed-off-by: David Chinner <dgc@sgi.com>
Signed-off-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
fs/xfs/xfs_log.c