2023-08-09 23:37:01

by Christoph Hellwig

[permalink] [raw]
Subject: s_fs_info and ->kill_sb revisited v2

Hi all,

this series is against the VFS vfs.super branch does two slightly
related things:

- move closing of the external devices in ext4 and xfs from ->put_super
into ->kill_sb so that this isn't done under s_umount which creates
lock ordere reversal
- move freeing the private dta in s_fs_info into ->kill_sb for file systems
that pass it in through the fs_context, as otherwise we could leak it
before fill_super is called (this is something new on the vfs.super
branch because of the changed place where blkdev_get is called)

Changes since v1:
- keep the invalidate_bdev call in XFS and actually document it
- minor whitespace fixes