push BKL down into ->put_super

Previous thread: cleanup sync_supers by Linux Kernel Mailing List on Thursday, June 11, 2009 - 8:59 pm. (1 message)

Next thread: qnx4: remove ->write_super by Linux Kernel Mailing List on Thursday, June 11, 2009 - 8:59 pm. (1 message)
From: Linux Kernel Mailing List
Date: Thursday, June 11, 2009 - 8:59 pm

Gitweb:     http://git.kernel.org/linus/6cfd0148425e528b859b26e436b01f23f6926224
Commit:     6cfd0148425e528b859b26e436b01f23f6926224
Parent:     a9e220f8322e2b0e0b8903fe00265461cffad3f0
Author:     Christoph Hellwig <hch@lst.de>
AuthorDate: Tue May 5 15:40:36 2009 +0200
Committer:  Al Viro <viro@zeniv.linux.org.uk>
CommitDate: Thu Jun 11 21:36:07 2009 -0400

    push BKL down into ->put_super
    
    Move BKL into ->put_super from the only caller.  A couple of
    filesystems had trivial enough ->put_super (only kfree and NULLing of
    s_fs_info + stuff in there) to not get any locking: coda, cramfs, efs,
    hugetlbfs, omfs, qnx4, shmem, all others got the full treatment.  Most
    of them probably don't need it, but I'd rather sort that out individually.
    Preferably after all the other BKL pushdowns in that area.
    
    [AV: original used to move lock_super() down as well; these changes are
    removed since we don't do lock_super() at all in generic_shutdown_super()
    now]
    [AV: fuse, btrfs and xfs are known to need no damn BKL, exempt]
    
    Signed-off-by: Christoph Hellwig <hch@lst.de>
    Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
---
 fs/adfs/super.c          |    4 ++++
 fs/affs/super.c          |    5 ++++-
 fs/afs/super.c           |    4 ++++
 fs/befs/linuxvfs.c       |    5 ++++-
 fs/bfs/inode.c           |    4 ++++
 fs/cifs/cifsfs.c         |    6 +++++-
 fs/ecryptfs/super.c      |    5 +++++
 fs/exofs/super.c         |    4 ++++
 fs/ext2/super.c          |    4 +++-
 fs/ext3/super.c          |    5 ++++-
 fs/ext4/super.c          |    2 +-
 fs/fat/inode.c           |    4 ++++
 fs/freevxfs/vxfs_super.c |    4 ++++
 fs/gfs2/super.c          |    4 ++++
 fs/hfs/super.c           |    4 ++++
 fs/hfsplus/super.c       |    5 +++++
 fs/hpfs/super.c          |    5 +++++
 fs/isofs/inode.c         |    5 +++++
 fs/jffs2/super.c         |    4 ++++
 fs/jfs/super.c           |    5 +++++
 fs/minix/inode.c         |    4 +++-
 ...
Previous thread: cleanup sync_supers by Linux Kernel Mailing List on Thursday, June 11, 2009 - 8:59 pm. (1 message)

Next thread: qnx4: remove ->write_super by Linux Kernel Mailing List on Thursday, June 11, 2009 - 8:59 pm. (1 message)