aboutsummaryrefslogtreecommitdiffstats
path: root/fs/locks.c
AgeCommit message (Expand)AuthorFilesLines
2019-12-29locks: print unsigned ino in /proc/locksAmir Goldstein1-1/+1
2019-09-27Merge tag 'nfsd-5.4' of git://linux-nfs.org/~bfields/linuxLinus Torvalds1-0/+62
2019-08-20locks: fix a memory leak bug in __break_lease()Wenwen Wang1-1/+2
2019-08-19nfsd: convert fi_deleg_file and ls_file fields to nfsd_fileJeff Layton1-0/+1
2019-08-19locks: create a new notifier chain for lease attemptsJeff Layton1-0/+61
2019-07-25locks: Fix procfs output for file leasesPavel Begunkov1-4/+4
2019-07-10Merge tag 'nfsd-5.3' of git://linux-nfs.org/~bfields/linuxLinus Torvalds1-5/+0
2019-07-03locks: Cleanup lm_compare_owner and lm_owner_keyBenjamin Coddington1-5/+0
2019-06-19locks: eliminate false positive conflicts for write leaseAmir Goldstein1-15/+27
2019-06-19locks: Add trace_leases_conflictIra Weiny1-5/+15
2019-05-21treewide: Add SPDX license identifier for missed filesThomas Gleixner1-0/+1
2019-05-15Merge tag 'nfsd-5.2' of git://linux-nfs.org/~bfields/linuxLinus Torvalds1-6/+6
2019-05-07Merge tag 'Wimplicit-fallthrough-5.2-rc1' of git://git.kernel.org/pub/scm/lin...Linus Torvalds1-1/+1
2019-04-24locks: move checks from locks_free_lock() to locks_release_private()NeilBrown1-6/+6
2019-04-08fs: mark expected switch fall-throughsGustavo A. R. Silva1-1/+1
2019-03-25locks: wake any locks blocked on request before deadlock checkJeff Layton1-0/+5
2019-02-28locking/percpu-rwsem: Remove preempt_disable variantsPeter Zijlstra1-16/+16
2019-01-02locks: fix error in locks_move_blocks()NeilBrown1-1/+1
2018-12-17locks: Use inode_is_open_for_writeNikolay Borisov1-1/+1
2018-12-07fs/locks: remove unnecessary white space.NeilBrown1-21/+12
2018-12-07fs/locks: merge posix_unblock_lock() and locks_delete_block()NeilBrown1-24/+14
2018-12-07fs/locks: create a tree of dependent requests.NeilBrown1-6/+63
2018-12-07fs/locks: change all *_conflict() functions to return bool.NeilBrown1-12/+15
2018-12-07fs/locks: always delete_block after waiting.NeilBrown1-16/+24
2018-11-30fs/locks: allow a lock request to block other requests.NeilBrown1-6/+37
2018-11-30fs/locks: use properly initialized file_lock when unlocking.NeilBrown1-14/+14
2018-11-30fs/locks: split out __locks_wake_up_blocks().NeilBrown1-11/+16
2018-11-30fs/locks: rename some lists and pointers.NeilBrown1-28/+31
2018-08-21Merge tag 'ovl-update-4.19' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-13/+7
2018-08-21Merge branch 'siginfo-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-1/+1
2018-08-13Merge tag 'locks-v4.19-1' of git://git.kernel.org/pub/scm/linux/kernel/git/jl...Linus Torvalds1-9/+11
2018-08-08locks: remove misleading obsolete commentJeff Layton1-4/+0
2018-08-06locks: add tracepoint in flock codepathJeff Layton1-0/+1
2018-07-21signal: Use PIDTYPE_TGID to clearly store where file signals will be sentEric W. Biederman1-1/+1
2018-07-18Partially revert "locks: fix file locking on overlayfs"Miklos Szeredi1-11/+6
2018-07-18Revert "vfs: do get_write_access() on upper layer of overlayfs"Miklos Szeredi1-2/+1
2018-06-15Merge tag 'vfs-timespec64' of git://git.kernel.org/pub/scm/linux/kernel/git/a...Linus Torvalds1-1/+1
2018-06-14fs/lock: show locks taken by processes from another pidnsKonstantin Khorenko1-5/+3
2018-06-14fs/lock: skip lock owner pid translation in case we are in init_pid_nsKonstantin Khorenko1-0/+7
2018-06-05vfs: change inode times to use struct timespec64Deepa Dinamani1-1/+1
2018-05-16proc: introduce proc_create_seq_privateChristoph Hellwig1-14/+2
2018-03-26treewide: Align function definition open/close bracesJoe Perches1-1/+1
2018-02-08Merge tag 'nfsd-4.16' of git://linux-nfs.org/~bfields/linuxLinus Torvalds1-4/+2
2018-02-08nfsd: encode stat->mtime for getattr instead of inode->i_mtimeAmir Goldstein1-4/+2
2017-11-27Rename superblock flags (MS_xyz -> SB_xyz)Linus Torvalds1-1/+1
2017-07-21locks: restore a warn for leaked locks on closeBenjamin Coddington1-0/+22
2017-07-16fs/locks: Remove fl_nspid and use fs-specific l_pid for remote locksBenjamin Coddington1-25/+37
2017-07-16fs/locks: Use allocation rather than the stack in fcntl_getlk()Benjamin Coddington1-20/+26
2017-05-27fs/locks: pass kernel struct flock to fcntl_getlk/setlkChristoph Hellwig1-57/+22
2017-05-27fs: locks: Fix some troubles at kernel-doc commentsMauro Carvalho Chehab1-10/+8
2017-04-21locks: Set FL_CLOSE when removing flock locks on close()Benjamin Coddington1-1/+1
2016-12-24Replace <asm/uaccess.h> with <linux/uaccess.h> globallyLinus Torvalds1-1/+1
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