gfs2: Cease delete work during unmount
authorBob Peterson <rpeterso@redhat.com>
Mon, 5 Dec 2022 23:12:59 +0000 (00:12 +0100)
committerAndreas Gruenbacher <agruenba@redhat.com>
Tue, 31 Jan 2023 21:40:24 +0000 (22:40 +0100)
commit6c0246a96e08cd1b5036c34c52de99bd9dffbb48
tree4d6075705c03e4e63740c0ee65fe35b7f8e6295d
parent1c9001515e8adc0743c6ae0707dc6f3aac926d0e
gfs2: Cease delete work during unmount

Add a check to delete_work_func() so that it quits when it finds that
the filesystem is deactivating.  This speeds up the delete workqueue
draining in gfs2_kill_sb().

In addition, make sure that iopen_go_callback() won't queue any new
delete work while the filesystem is deactivating.

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