• Linus Torvalds's avatar
    Merge tag 'locks-v6.2' of git://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux · 73fa58dc
    Linus Torvalds authored
    Pull file locking updates from Jeff Layton:
     "The main change here is to add the new locks_inode_context helper, and
      convert all of the places that dereference inode->i_flctx directly to
      use that instead.
    
      There is a new helper to indicate whether any locks are held on an
      inode. This is mostly for Ceph but may be usable elsewhere too.
    
      Andi Kleen requested that we print the PID when the LOCK_MAND warning
      fires, to help track down applications trying to use it.
    
      Finally, we added some new warnings to some of the file locking
      functions that fire when the ->fl_file and filp arguments differ. This
      helped us find some long-standing bugs in lockd. Patches for those are
      in Chuck Lever's tree and should be in his v6.2 PR. After that patch,
      people using NFSv2/v3 locking may see some warnings fire until those
      go in.
    
      Happy Holidays!"
    
    * tag 'locks-v6.2' of git://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux:
      Add process name and pid to locks warning
      nfsd: use locks_inode_context helper
      nfs: use locks_inode_context helper
      lockd: use locks_inode_context helper
      ksmbd: use locks_inode_context helper
      cifs: use locks_inode_context helper
      ceph: use locks_inode_context helper
      filelock: add a new locks_inode_context accessor function
      filelock: new helper: vfs_inode_has_locks
      filelock: WARN_ON_ONCE when ->fl_file and filp don't match
    73fa58dc
vfs.c 44.6 KB