linux-stable-rt/fs/xfs/quota
Dave Chinner 0fbca4d1c3 xfs: fix dquot shaker deadlock
Commit 368e136 ("xfs: remove duplicate code from dquot reclaim") fails
to unlock the dquot freelist when the number of loop restarts is
exceeded in xfs_qm_dqreclaim_one(). This causes hangs in memory
reclaim.

Rework the loop control logic into an unwind stack that all the
different cases jump into. This means there is only one set of code
that processes the loop exit criteria, and simplifies the unlocking
of all the items from different points in the loop. It also fixes a
double increment of the restart counter from the qi_dqlist_lock
case.

Reported-by: Malcolm Scott <lkml@malc.org.uk>
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Alex Elder <aelder@sgi.com>
2011-01-28 09:05:36 -06:00
..
xfs_dquot.c xfs: use wait queues directly for the log wait queues 2010-12-21 12:09:01 +11:00
xfs_dquot.h
xfs_dquot_item.c
xfs_dquot_item.h
xfs_qm.c xfs: fix dquot shaker deadlock 2011-01-28 09:05:36 -06:00
xfs_qm.h
xfs_qm_bhv.c xfs: Extend project quotas to support 32bit project ids 2010-10-18 15:08:08 -05:00
xfs_qm_stats.c
xfs_qm_stats.h
xfs_qm_syscalls.c xfs: Extend project quotas to support 32bit project ids 2010-10-18 15:08:08 -05:00
xfs_quota_priv.h
xfs_trans_dquot.c