mirror of
https://github.com/torvalds/linux.git
synced 2026-05-27 08:33:17 +02:00
Revert "gfs2: fix glock shrinker ref issues"
This reverts commit62862485a4. Commit62862485a4tried to fix issues introduced by commit228804a35c("gfs2: Make glock lru list scanning safer"), but like that commit, it failed to account for the bias state_change() adds to the glock reference count for locked glocks. Revert commit62862485a4so that we can fix commit228804a35cproperly. Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
This commit is contained in:
parent
5d92311119
commit
c9a0a4b028
|
|
@ -2056,9 +2056,7 @@ static long gfs2_scan_glock_lru(int nr)
|
|||
if (!test_bit(GLF_LOCK, &gl->gl_flags)) {
|
||||
if (!spin_trylock(&gl->gl_lockref.lock))
|
||||
continue;
|
||||
if (gl->gl_lockref.count <= 1 &&
|
||||
(gl->gl_state == LM_ST_UNLOCKED ||
|
||||
demote_ok(gl))) {
|
||||
if (!gl->gl_lockref.count) {
|
||||
list_move(&gl->gl_lru, &dispose);
|
||||
atomic_dec(&lru_count);
|
||||
freed++;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user