• Linus Torvalds's avatar
    Merge tag 'v6.6-vfs.super.fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs · 468e28d4
    Linus Torvalds authored
    Pull superblock fixes from Christian Brauner:
     "Two follow-up fixes for the super work this cycle:
    
       - Move a misplaced lockep assertion before we potentially free the
         object containing the lock.
    
       - Ensure that filesystems which match superblocks in sget{_fc}()
         based on sb->s_fs_info are guaranteed to see a valid sb->s_fs_info
         as long as a superblock still appears on the filesystem type's
         superblock list.
    
         What we want as a proper solution for next cycle is to split
         sb->free_sb() out of sb->kill_sb() so that we can simply call
         kill_super_notify() after sb->kill_sb() but before sb->free_sb().
    
         Currently, this is lumped together in sb->kill_sb()"
    
    * tag 'v6.6-vfs.super.fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs:
      super: ensure valid info
      super: move lockdep assert
    468e28d4
super.c 55.1 KB