• Linus Torvalds's avatar
    Merge tag 'locks-v3.20-1' of git://git.samba.org/jlayton/linux · 4b4f8580
    Linus Torvalds authored
    Pull file locking related changes #1 from Jeff Layton:
     "This patchset contains a fairly major overhaul of how file locks are
      tracked within the inode.  Rather than a single list, we now create a
      per-inode "lock context" that contains individual lists for the file
      locks, and a new dedicated spinlock for them.
    
      There are changes in other trees that are based on top of this set so
      it may be easiest to pull this in early"
    
    * tag 'locks-v3.20-1' of git://git.samba.org/jlayton/linux:
      locks: update comments that refer to inode->i_flock
      locks: consolidate NULL i_flctx checks in locks_remove_file
      locks: keep a count of locks on the flctx lists
      locks: clean up the lm_change prototype
      locks: add a dedicated spinlock to protect i_flctx lists
      locks: remove i_flock field from struct inode
      locks: convert lease handling to file_lock_context
      locks: convert posix locks to file_lock_context
      locks: move flock locks to file_lock_context
      ceph: move spinlocking into ceph_encode_locks_to_buffer and ceph_count_locks
      locks: add a new struct file_locking_context pointer to struct inode
      locks: have locks_release_file use flock_lock_file to release generic flock locks
      locks: add new struct list_head to struct file_lock
    4b4f8580
file.c 101 KB