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>
Showing
- fs/gfs2/glock.c 45 additions, 2 deletionsfs/gfs2/glock.c
- fs/gfs2/glock.h 4 additions, 0 deletionsfs/gfs2/glock.h
- fs/gfs2/glops.c 8 additions, 1 deletionfs/gfs2/glops.c
- fs/gfs2/incore.h 3 additions, 2 deletionsfs/gfs2/incore.h
- fs/gfs2/inode.c 2 additions, 0 deletionsfs/gfs2/inode.c
- fs/gfs2/rgrp.c 1 addition, 1 deletionfs/gfs2/rgrp.c
- fs/gfs2/super.c 2 additions, 2 deletionsfs/gfs2/super.c
Loading
Please register or sign in to comment