Steven Whitehouse 94a09a3999 GFS2: Fix race in glock lru glock disposal
We must not leave items on the LRU list with GLF_LOCK set, since
they can be removed if the glock is brought back into use, which
may then potentially result in a hang, waiting for GLF_LOCK to
clear.

It doesn't happen very often, since it requires a glock that has
not been used for a long time to be brought back into use at the
same moment that the shrinker is part way through disposing of
glocks.

The fix is to set GLF_LOCK at a later time, when we already know
that the other locks can be obtained. Also, we now only release
the lru_lock in case a resched is needed, rather than on every
iteration.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
2014-07-18 11:12:51 +01:00
..
2014-03-19 15:53:52 +00:00
2014-03-19 15:16:24 +00:00
2014-03-03 13:50:12 +00:00
2013-09-05 16:23:51 -04:00
2014-03-07 09:30:51 +00:00
2014-01-06 12:49:43 +00:00
2013-06-29 12:57:05 +04:00
2008-06-27 09:39:44 +01:00
2014-05-14 10:04:34 +01:00
2014-05-14 10:04:34 +01:00
2013-06-14 11:17:15 +01:00
2013-06-03 14:20:18 -07:00
2014-05-14 10:04:34 +01:00
2014-05-14 10:04:34 +01:00
2014-03-07 09:30:51 +00:00
2011-05-10 13:12:49 +01:00
2014-05-14 10:04:34 +01:00
2014-05-14 10:04:34 +01:00
2014-05-14 10:04:34 +01:00
2013-01-29 10:29:05 +00:00
2012-01-11 09:23:05 +00:00
2014-05-14 10:04:34 +01:00
2009-12-16 12:16:49 -05:00