Skip to content
Commit 6b388abc authored by Andreas Gruenbacher's avatar Andreas Gruenbacher
Browse files

gfs2: Flush delete work before shrinking inode cache



In gfs2_kill_sb(), flush the delete work queue after setting the
SDF_DEACTIVATING flag.  This ensures that no new inodes will be
instantiated anymore, and the inode cache will be empty after the
following kill_block_super() -> generic_shutdown_super() ->
evict_inodes() call.

With that, function gfs2_make_fs_ro() now calls gfs2_flush_delete_work()
after the workqueue has been destroyed.  Skip that by checking for the
presence of the SDF_DEACTIVATING flag.

Signed-off-by: default avatarAndreas Gruenbacher <agruenba@redhat.com>
parent 6c0246a9
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment