Re: [Cluster-devel] [PATCH v2] gfs2: Fix lru_count going negative

2019-03-27 Thread Andreas Gruenbacher
Hi Ross, On Wed, 27 Mar 2019 at 18:09, Ross Lagerwall wrote: > I've detached this from "gfs2: Fix occasional glock use-after-free" > since this can go in separately while that is still under discussion. > > Changed in v2: > * Move GLOF_LRU check into gfs2_glock_add_to_lru() for symmetry with >

[Cluster-devel] [PATCH v2] gfs2: Fix lru_count going negative

2019-03-27 Thread Ross Lagerwall
Under certain conditions, lru_count may drop below zero resulting in a large amount of log spam like this: vmscan: shrink_slab: gfs2_dump_glock+0x3b0/0x630 [gfs2] \ negative objects to delete nr=-1 This happens as follows: 1) A glock is moved from lru_list to the dispose list and lru_count