xfs: nest qm_dqfrlist_lock inside the dquot qlock
authorChristoph Hellwig <hch@infradead.org>
Tue, 6 Dec 2011 21:58:19 +0000 (21:58 +0000)
committerBen Myers <bpm@sgi.com>
Thu, 15 Dec 2011 03:15:42 +0000 (21:15 -0600)
commitbf72de3194e73fa210a904b0bd951135286bb385
tree408ead179da91befd82e0cc23ed66830ead2fa59
parent92678554abfc2a2f2727ad168da87d8d434ac904
xfs: nest qm_dqfrlist_lock inside the dquot qlock

Allow xfs_qm_dqput to work without trylock loops by nesting the freelist lock
inside the dquot qlock.  In turn that requires trylocks in the reclaim path
instead, but given it's a classic tradeoff between fast and slow path, and
we follow the model of the inode and dentry caches.

Document our new lock order now that it has settled.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
fs/xfs/xfs_dquot.c
fs/xfs/xfs_qm.c
This page took 0.026117 seconds and 5 git commands to generate.