OSDN Git Service

gfs2: Turn gl_delete into a delayed work
authorAndreas Gruenbacher <agruenba@redhat.com>
Thu, 16 Jan 2020 19:12:26 +0000 (20:12 +0100)
committerAndreas Gruenbacher <agruenba@redhat.com>
Fri, 5 Jun 2020 18:19:21 +0000 (20:19 +0200)
commita0e3cc65fa29f497cc97a069c318532c2a48d148
treecd8d55687fc9ff76fc46896c3559ac77252903c2
parentf286d627ef026a4d04b41ae5917d58ddf243c3c5
gfs2: Turn gl_delete into a delayed work

This requires flushing delayed work items in gfs2_make_fs_ro (which is called
before unmounting a filesystem).

When inodes are deleted and then recreated, pending gl_delete work items would
have no effect because the inode generations will have changed, so we can
cancel any pending gl_delete works before reusing iopen glocks.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/glock.c
fs/gfs2/glock.h
fs/gfs2/glops.c
fs/gfs2/incore.h
fs/gfs2/inode.c
fs/gfs2/rgrp.c
fs/gfs2/super.c