gfs2: Defer deleting inodes under memory pressure
authorAndreas Gruenbacher <agruenba@redhat.com>
Tue, 1 Aug 2017 16:49:42 +0000 (11:49 -0500)
committerBob Peterson <rpeterso@redhat.com>
Thu, 10 Aug 2017 15:49:13 +0000 (10:49 -0500)
commit6a1c8f6dcf815d96197a2723781cf700925d17ed
tree27df64a37b4101dd81605f35e387466ffb34071c
parent71c1b2136835c88c231f7a5e3dc618f7568f84f7
gfs2: Defer deleting inodes under memory pressure

When under memory pressure and an inode's link count has dropped to
zero, defer deleting the inode to the delete workqueue.  This avoids
calling into DLM under memory pressure, which can deadlock.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
fs/gfs2/super.c