aboutsummaryrefslogtreecommitdiffstats
path: root/fs/locks.c
AgeCommit message (Expand)AuthorFilesLines
2016-10-18locking, fs/locks: Add missing file_sem locksPeter Zijlstra1-0/+6
2016-10-10Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-1/+1
2016-10-10Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/vir...Linus Torvalds1-23/+30
2016-10-04Merge tag 'locks-v4.9-1' of git://git.samba.org/jlayton/linuxLinus Torvalds1-3/+18
2016-09-27fs: Replace current_fs_time() with current_time()Deepa Dinamani1-1/+1
2016-09-22fs/locks: Use percpu_down_read_preempt_disable()Peter Zijlstra1-12/+12
2016-09-22fs/locks: Replace lg_local with a per-cpu spinlockPeter Zijlstra1-18/+29
2016-09-22fs/locks: Replace lg_global with a percpu-rwsemPeter Zijlstra1-0/+21
2016-09-16vfs: do get_write_access() on upper layer of overlayfsMiklos Szeredi1-1/+2
2016-09-16locks: fix file locking on overlayfsMiklos Szeredi1-22/+28
2016-08-18locks: Filter /proc/locks output on proc pid nsNikolay Borisov1-3/+18
2016-07-01locks: use file_inode()Miklos Szeredi1-1/+1
2016-01-22wrappers for ->i_mutex accessAl Viro1-3/+3
2016-01-12Merge branch 'work.copy_file_range' of git://git.kernel.org/pub/scm/linux/ker...Linus Torvalds1-13/+9
2016-01-08locks: rename __posix_lock_file to posix_lock_inodeJeff Layton1-5/+6
2016-01-08locks: prink more detail when there are leaked locksJeff Layton1-4/+29
2016-01-08locks: pass inode pointer to locks_free_lock_contextJeff Layton1-1/+3
2016-01-08locks: sprinkle some tracepoints around the file locking codeJeff Layton1-3/+9
2016-01-08locks: don't check for race with close when setting OFD lockJeff Layton1-6/+10
2016-01-07locks: fix unlock when fcntl_setlk races with a closeJeff Layton1-21/+30
2015-12-18fs: make locks.c explicitly non-modularPaul Gortmaker1-2/+1
2015-12-07locks: new locks_mandatory_area calling conventionChristoph Hellwig1-13/+9
2015-11-18locks: use list_first_entry_or_null()Geliang Tang1-6/+4
2015-11-16locks: Allow disabling mandatory locking at compile timeJeff Layton1-0/+2
2015-10-22locks: cleanup posix_lock_inode_wait and flock_lock_inode_waitBenjamin Coddington1-6/+3
2015-10-22Move locks API users to locks_lock_inode_wait()Benjamin Coddington1-1/+1
2015-10-22locks: introduce locks_lock_inode_wait()Benjamin Coddington1-0/+24
2015-10-15locks: Use more file_inode and fix a commentBenjamin Coddington1-5/+3
2015-09-21fs: fix data races on inode->i_flctxDmitry Vyukov1-27/+36
2015-08-31fs: fix fs/locks.c kernel-doc warningRandy Dunlap1-0/+1
2015-07-13locks: inline posix_lock_file_wait and flock_lock_file_waitJeff Layton1-28/+0
2015-07-13locks: new helpers - flock_lock_inode_wait and posix_lock_inode_waitJeff Layton1-12/+38
2015-07-13locks: have flock_lock_file take an inode pointer instead of a filpJeff Layton1-6/+6
2015-04-17proc: show locks in /proc/pid/fdinfo/XAndrey Vagin1-0/+38
2015-04-03locks: use cmpxchg to assign i_flctx pointerJeff Layton1-8/+1
2015-04-03locks: get rid of WE_CAN_BREAK_LSLK_NOW dead codeJeff Layton1-6/+1
2015-04-03locks: change lm_get_owner and lm_put_owner prototypesJeff Layton1-3/+5
2015-04-03locks: don't allocate a lock context for an F_UNLCK requestJeff Layton1-8/+12
2015-04-03locks: Add lockdep assertion for blocked_lock_lockDaniel Wagner1-0/+6
2015-04-03locks: remove extraneous IS_POSIX and IS_FLOCK testsJeff Layton1-2/+2
2015-04-03locks: Remove unnecessary IS_POSIX testDaniel Wagner1-2/+0
2015-03-27locks: fix file_lock deletion inside loopYan, Zheng1-3/+2
2015-03-14locks: fix generic_delete_lease tracepoint to use victim pointerJeff Layton1-1/+1
2015-03-04locks: fix fasync_struct memory leak in lease upgrade/downgrade handlingJeff Layton1-1/+2
2015-02-17locks: fix list insertion when lock is split in twoJeff Layton1-0/+1
2015-02-17locks: remove conditional lock release in middle of flock_lock_fileJeff Layton1-10/+0
2015-02-17locks: only remove leases associated with the file being closedJeff Layton1-1/+2
2015-02-16Revert "locks: keep a count of locks on the flctx lists"Jeff Layton1-29/+16
2015-02-02fs: add FL_LAYOUT lease typeChristoph Hellwig1-4/+10
2015-02-02fs: track fl_owner for leasesChristoph Hellwig1-5/+7
2015-01-21locks: update comments that refer to inode->i_flockJeff Layton1-1/+1
2015-01-16locks: consolidate NULL i_flctx checks in locks_remove_fileJeff Layton1-2/+7
2015-01-16locks: keep a count of locks on the flctx listsJeff Layton1-16/+29
2015-01-16locks: clean up the lm_change prototypeJeff Layton1-7/+6
2015-01-16locks: add a dedicated spinlock to protect i_flctx listsJeff Layton1-43/+44
2015-01-16locks: convert lease handling to file_lock_contextJeff Layton1-153/+99
2015-01-16locks: convert posix locks to file_lock_contextJeff Layton1-51/+57
2015-01-16locks: move flock locks to file_lock_contextJeff Layton1-19/+35
2015-01-16locks: add a new struct file_locking_context pointer to struct inodeJeff Layton1-0/+44
2015-01-16locks: have locks_release_file use flock_lock_file to release generic flock l...Jeff Layton1-18/+31
2015-01-16locks: add new struct list_head to struct file_lockJeff Layton1-3/+5
2015-01-13locks: fix NULL-deref in generic_delete_leaseNeilBrown1-1/+1
2014-10-07locks: flock_make_lock should return a struct file_lock (or PTR_ERR)Jeff Layton1-8/+11
2014-10-07locks: set fl_owner for leases to filp instead of current->filesJeff Layton1-1/+1
2014-10-07locks: give lm_break a return valueJeff Layton1-4/+13
2014-10-07locks: __break_lease cleanup in preparation of allowing direct removal of leasesJeff Layton1-24/+25
2014-10-07locks: remove i_have_this_lease check from __break_leaseJeff Layton1-4/+2
2014-10-07locks: move freeing of leases outside of i_lockJeff Layton1-12/+22
2014-10-07locks: move i_lock acquisition into generic_*_lease handlersJeff Layton1-12/+9
2014-10-07locks: define a lm_setup handler for leasesJeff Layton1-44/+48
2014-10-07locks: plumb a "priv" pointer into the setlease routinesJeff Layton1-12/+20
2014-10-07locks: clean up vfs_setlease kerneldoc commentsJeff Layton1-24/+10
2014-10-07locks: generic_delete_lease doesn't need a file_lock at allJeff Layton1-20/+14
2014-10-07locks: close potential race in lease_get_mtimeJeff Layton1-2/+12
2014-09-09security: make security_file_set_fowner, f_setown and __f_setown void returnJeff Layton1-1/+1
2014-09-09locks: remove lock_may_read and lock_may_writeJeff Layton1-80/+0
2014-09-09locks: Copy fl_lmops information for conflock in locks_copy_conflock()Kinglong Mee1-20/+16
2014-09-09locks: New ops in lock_manager_operations for get/put ownerKinglong Mee1-2/+10
2014-09-09locks: Rename __locks_copy_lock() to locks_copy_conflock()Kinglong Mee1-5/+5
2014-09-09locks: pass correct "before" pointer to locks_unlink_lock in generic_add_leaseJeff Layton1-1/+1
2014-08-14locks: move locks_free_lock calls in do_fcntl_add_lease outside spinlockJeff Layton1-9/+7
2014-08-14locks: defer freeing locks in locks_delete_lock until after i_lock has been d...Jeff Layton1-8/+30
2014-08-14locks: don't reuse file_lock in __posix_lock_fileJeff Layton1-11/+14
2014-08-11locks: don't call locks_release_private from locks_copy_lockJeff Layton1-1/+2
2014-08-11locks: show delegations as "DELEG" in /proc/locksJeff Layton1-1/+5
2014-07-13locks: purge fl_owner_t from fs/locks.cChristoph Hellwig1-13/+13
2014-06-10locks: set fl_owner for leases back to current->filesJeff Layton1-1/+1
2014-06-02locks: add some tracepoints in the lease handling codeJeff Layton1-0/+11
2014-06-02fs/locks.c: replace seq_printf by seq_putsFabian Frederick1-11/+11
2014-06-02locks: ensure that fl_owner is always initialized properly in flock and lease...Jeff Layton1-1/+3
2014-05-09locks: only validate the lock vs. f_mode in F_SETLK codepathsJeff Layton1-12/+24
2014-04-23locks: rename FL_FILE_PVT and IS_FILE_PVT to use "*_OFDLCK" insteadJeff Layton1-17/+17
2014-04-22locks: rename file-private locks to "open file description locks"Jeff Layton1-7/+7
2014-04-15locks: allow __break_lease to sleep even when break_time is 0Jeff Layton1-4/+3
2014-03-31locks: make locks_mandatory_area check for file-private locksJeff Layton1-2/+13
2014-03-31locks: fix locks_mandatory_locked to respect file-private locksJeff Layton1-3/+4
2014-03-31locks: require that flock->l_pid be set to 0 for file-private locksJeff Layton1-0/+24
2014-03-31locks: add new fcntl cmd values for handling file private locksJeff Layton1-4/+50
2014-03-31locks: skip deadlock detection on FL_FILE_PVT locksJeff Layton1-2/+17
2014-03-31locks: pass the cmd value to fcntl_getlk/getlk64Jeff Layton1-2/+2
2014-03-31locks: report l_pid as -1 for FL_FILE_PVT locksJeff Layton1-2/+2
2014-03-31locks: make /proc/locks show IS_FILE_PVT locks as type "FLPVT"Jeff Layton1-2/+9
2014-03-31locks: rename locks_remove_flock to locks_remove_fileJeff Layton1-1/+1
2014-03-31locks: consolidate checks for compatible filp->f_mode values in setlk handlersJeff Layton1-34/+12
2014-03-31locks: fix posix lock range overflow handlingJ. Bruce Fields1-68/+32
2014-03-31locks: eliminate BUG() call when there's an unexpected lock on file closeJeff Layton1-6/+18
2014-03-31locks: add __acquires and __releases annotations to locks_start and locks_stopJeff Layton1-0/+2
2014-03-31locks: remove "inline" qualifier from fl_link manipulation functionsJeff Layton1-8/+4
2014-03-31locks: clean up comment typoJeff Layton1-1/+1
2014-03-31locks: close potential race between setlease and openJeff Layton1-13/+62
2013-11-13locks: missing unlock on error in generic_add_lease()Dan Carpenter1-0/+1
2013-11-09locks: implement delegationsJ. Bruce Fields1-10/+45
2013-11-09locks: introduce new FL_DELEG lock flagJ. Bruce Fields1-1/+1
2013-10-24file->f_op is never NULL...Al Viro1-6/+6
2013-07-08locks: move file_lock_list to a set of percpu hlist_heads and convert file_lo...Jeff Layton1-20/+49
2013-07-05helper for reading ->d_countAl Viro1-1/+1
2013-06-29locks: give the blocked_hash its own spinlockJeff Layton1-19/+22
2013-06-29locks: add a new "lm_owner_key" lock operationJeff Layton1-2/+10
2013-06-29locks: turn the blocked_list into a hashtableJeff Layton1-8/+17
2013-06-29locks: convert fl_link to a hlist_nodeJeff Layton1-12/+12
2013-06-29locks: avoid taking global lock if possible when waking up blocked waitersJeff Layton1-1/+14
2013-06-29locks: protect most of the file_lock handling with i_lockJeff Layton1-60/+104
2013-06-29locks: encapsulate the fl_link list handlingJeff Layton1-9/+36
2013-06-29locks: make "added" in __posix_lock_file a boolJeff Layton1-4/+5
2013-06-29locks: comment cleanups and clarificationsJeff Layton1-8/+13
2013-06-29locks: make generic_add_lease and generic_delete_lease staticJeff Layton1-2/+2
2013-06-29cifs: use posix_unblock_lock instead of locks_delete_blockJeff Layton1-2/+1
2013-06-29locks: drop the unused filp argument to posix_unblock_lockJeff Layton1-3/+1
2013-02-22new helper: file_inode(file)Al Viro1-12/+12
2012-10-09nfs: disintegrate UAPI for nfsJ. Bruce Fields1-11/+9
2012-09-26switch simple cases of fget_light to fdgetAl Viro1-11/+9
2012-08-20vfs: don't treat fl_type as a bitmapJeff Layton1-3/+3
2012-08-01locks: remove unused lm_release_privateJ. Bruce Fields1-5/+1
2012-07-31Merge branch 'nfsd-next' of git://linux-nfs.org/~bfields/linuxLinus Torvalds1-17/+11
2012-07-27locks: move lease-specific code out of locks_delete_lockJ. Bruce Fields1-6/+5
2012-07-27locks: prevent side-effects of locks_release_private before file_lock is init...Filipe Brandenburger1-11/+6
2012-07-23locks: fix checking of fcntl_setlease argumentJ. Bruce Fields1-3/+3
2012-07-13Remove easily user-triggerable BUG from generic_setleaseDave Jones1-1/+1
2012-05-29switch flock to fget_light/fput_lightAl Viro1-2/+3
2012-05-23Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebi...Linus Torvalds1-1/+1
2012-05-03userns: Use uid_eq gid_eq helpers when comparing kuids and kgids in the vfsEric W. Biederman1-1/+1
2012-04-01CIFS: Fix VFS lock usage for oplocked filesPavel Shilovsky1-1/+2
2011-12-26vfs: fix handling of lock allocation failure in lease-break caseLinus Torvalds1-8/+3
2011-10-25Merge branch 'for-3.2' of git://linux-nfs.org/~bfields/linuxLinus Torvalds1-83/+140
2011-09-27doc: fix broken referencesPaul Bolle1-1/+1
2011-09-21leases: split up generic_setlease into lock/unlock casesJ. Bruce Fields1-36/+62
2011-08-19locks: setlease cleanupJ. Bruce Fields1-16/+17
2011-08-19locks: fix tracking of inprogress lease breaksJ. Bruce Fields1-32/+55
2011-08-19locks: move F_INPROGRESS from fl_type to fl_flags fieldJ. Bruce Fields1-6/+8
2011-08-19locks: minor lease cleanupJ. Bruce Fields1-5/+10
2011-07-20locks: rename lock-manager opsJ. Bruce Fields1-17/+17
2011-07-15fs: locks: remove init_onceMiklos Szeredi1-31/+10
2011-07-06fs: fix lock initializationMiklos Szeredi1-10/+20
2011-03-24Merge branch 'for-2.6.39' of git://linux-nfs.org/~bfields/linuxLinus Torvalds1-11/+1
2011-03-07locks: use assign_type()Namhyung Kim1-11/+1
2011-03-05fs/locks.c: Remove stale FIXME left over from BKL conversionMatt Fleming1-1/+0
2011-01-14Merge branch 'for-2.6.38' of git://linux-nfs.org/~bfields/linuxLinus Torvalds1-7/+1
2011-01-07fs: dcache scale dentry refcountNick Piggin1-1/+1
2011-01-04locks: minor setlease cleanupJ. Bruce Fields1-1/+1
2011-01-04locks: eliminate fl_mylease callbackJ. Bruce Fields1-7/+1
2010-11-17BKL: remove extraneous #include <smp_lock.h>Arnd Bergmann1-1/+0
2010-11-10locks: remove dead lease error-handling codeJ. Bruce Fields1-10/+2
2010-11-10locks: fix leak on merging leasesJ. Bruce Fields1-2/+5
2010-10-31locks: remove fl_copy_lock lock_manager operationChristoph Hellwig1-4/+1
2010-10-31locks: let the caller free file_lock on ->setlease failureChristoph Hellwig1-9/+11
2010-10-30locks: fix setlease methods to free passed-in lockJ. Bruce Fields1-1/+2
2010-10-30locks: fix leaks on setlease errorsJ. Bruce Fields1-5/+7
2010-10-30locks: prevent ENOMEM on lease unlockJ. Bruce Fields1-13/+30
2010-10-27Merge branch 'flock' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/bklLinus Torvalds1-26/+31
2010-10-27locks: turn lock_flocks into a spinlockArnd Bergmann1-2/+3
2010-10-27fasync: re-organize fasync entry insertion to allow it under a spinlockLinus Torvalds1-1/+17
2010-10-27locks/nfsd: allocate file lock outside of spinlockArnd Bergmann1-24/+12
2010-10-26procfs: fix numbering in /proc/locksJerome Marchand1-8/+11
2010-10-05fs/locks.c: prepare for BKL removalArnd Bergmann1-44/+68
2010-03-08Merge branch 'for-next' into for-linusJiri Kosina1-1/+1
2010-03-03Switch may_open() and break_lease() to passing O_...Al Viro1-2/+3
2010-02-05Fix misspelling of "should" and "shouldn't" in comments.Adam Buchbinder1-1/+1
2009-09-22const: make lock_manager_operations constAlexey Dobriyan1-1/+1
2009-09-11Merge branch 'sched-core-for-linus' of git://git.kernel.org/pub/scm/linux/ker...Linus Torvalds1-1/+1
2009-07-18sched: Convert the only user of cond_resched_bkl to use cond_resched()Frederic Weisbecker1-1/+1
2009-07-17security: fix security_file_lock cmd argumentSten Spans1-1/+1
2009-04-24lockd: call locks_release_private to cleanup per-filesystem stateFelix Blyakher1-1/+2
2009-01-14[CVE-2009-0029] System call wrappers part 16Heiko Carstens1-1/+1
2008-11-14CRED: Wrap task credential accesses in the filesystem subsystemDavid Howells1-1/+1
2008-10-23Merge branch 'proc' of git://git.kernel.org/pub/scm/linux/kernel/git/adobriya...Linus Torvalds1-1/+21
2008-10-23proc: move rest of /proc/locks to fs/locks.cAlexey Dobriyan1-1/+21
2008-10-21[PATCH] introduce fmode_t, do annotationsAl Viro1-1/+2
2008-07-26SL*B: drop kmem cache argument from constructorAlexey Dobriyan1-1/+1
2008-07-25locks: allow ->lock() to return FILE_LOCK_DEFERREDMiklos Szeredi1-14/+9
2008-07-25locks: cleanup code duplicationMiklos Szeredi1-40/+31
2008-07-25locks: add special return value for asynchronous locksMiklos Szeredi1-14/+14
2008-06-23[patch 4/4] flock: remove unused fields from file_lock_operationsDenis V. Lunev1-6/+0
2008-05-11Add new 'cond_resched_bkl()' helper functionLinus Torvalds1-1/+1
2008-05-06[PATCH] fix SMP ordering hole in fcntl_setlk()Al Viro1-2/+15
2008-05-01[PATCH] split linux/file.hAl Viro1-0/+1
2008-04-25Export __locks_copy_lock() so modular lockd buildsRoland Dreier1-0/+1
2008-04-25locks: don't call ->copy_lock methods on return of conflicting locksJ. Bruce Fields1-2/+2
2008-04-25leases: remove unneeded variable from fcntl_setlease().David M. Richter1-2/+1
2008-04-25leases: move lock allocation earlier in generic_setlease()David M. Richter1-5/+5
2008-04-25leases: when unlocking, skip locking-related stepsDavid M. Richter1-11/+13