aboutsummaryrefslogtreecommitdiffstats
path: root/fs/locks.c
AgeCommit message (Expand)AuthorFilesLines
2024-02-20filelock: fix deadlock detection in POSIX lockingJeff Layton1-1/+1
2024-02-05filelock: don't do security checks on nfsd setlease callsJeff Layton1-18/+25
2024-02-05filelock: split leases out of struct file_lockJeff Layton1-43/+80
2024-02-05filelock: convert seqfile handling to use file_lock_coreJeff Layton1-36/+36
2024-02-05filelock: convert locks_translate_pid to take file_lock_coreJeff Layton1-10/+10
2024-02-05filelock: convert locks_insert_lock_ctx and locks_delete_lock_ctxJeff Layton1-22/+22
2024-02-05filelock: convert locks_wake_up_blocks to take a file_lock_core pointerJeff Layton1-7/+7
2024-02-05filelock: make assign_type helper take a file_lock_core pointerJeff Layton1-5/+5
2024-02-05filelock: reorganize locks_delete_block and __locks_insert_blockJeff Layton1-20/+22
2024-02-05filelock: clean up locks_delete_block internalsJeff Layton1-7/+8
2024-02-05filelock: convert fl_blocker to file_lock_coreJeff Layton1-8/+8
2024-02-05filelock: convert __locks_insert_block, conflict and deadlock checks to use f...Jeff Layton1-60/+72
2024-02-05filelock: make __locks_delete_block and __locks_wake_up_blocks take file_lock...Jeff Layton1-18/+27
2024-02-05filelock: convert locks_{insert,delete}_global_blockedJeff Layton1-7/+6
2024-02-05filelock: make locks_{insert,delete}_global_locks take file_lock_core argJeff Layton1-9/+9
2024-02-05filelock: convert posix_owner_key to take file_lock_core argJeff Layton1-4/+4
2024-02-05filelock: make posix_same_owner take file_lock_core pointersJeff Layton1-8/+8
2024-02-05filelock: convert more internal functions to use file_lock_coreJeff Layton1-26/+25
2024-02-05filelock: have fs/locks.c deal with file_lock_core directlyJeff Layton1-229/+238
2024-02-05filelock: split common fields into struct file_lock_coreJeff Layton1-0/+1
2024-02-05filelock: drop the IS_* macrosJeff Layton1-17/+15
2024-02-05filelock: add some new helper functionsJeff Layton1-9/+9
2024-02-02filelock: rename fl_pid variable in lock_get_statusJeff Layton1-4/+4
2023-12-28fs: Remove the now superfluous sentinel elements from ctl_table arrayJoel Granados1-1/+0
2023-11-02Merge tag 'mm-nonmm-stable-2023-11-02-14-08' of git://git.kernel.org/pub/scm/...Linus Torvalds1-2/+2
2023-10-18treewide: mark stuff as __ro_after_initAlexey Dobriyan1-2/+2
2023-10-16lockd: add doc to enable EXPORT_OP_ASYNC_LOCKAlexander Aring1-5/+7
2023-08-31Merge tag 'nfsd-6.6' of git://git.kernel.org/pub/scm/linux/kernel/git/cel/linuxLinus Torvalds1-7/+0
2023-08-29locks: allow support for write delegationDai Ngo1-7/+0
2023-08-28Merge tag 'filelock-v6.6' of git://git.kernel.org/pub/scm/linux/kernel/git/jl...Linus Torvalds1-5/+22
2023-08-24locks: fix KASAN: use-after-free in trace_event_raw_event_filelock_lockWill Shiu1-1/+1
2023-08-24fs/locks: Fix typoJakub Wilk1-1/+1
2023-07-10fs: Pass argument to fcntl_setlease as intLuca Vizzarro1-10/+10
2023-06-27fs/locks: F_UNLCK extension for F_OFD_GETLKStas Sergeev1-3/+20
2023-03-09filelocks: use mount idmapping for setlease permission checkSeth Forshee1-1/+2
2023-03-09fs/locks: Remove redundant assignment to cmdJiapeng Chong1-1/+0
2023-02-21Merge tag 'rcu.2023.02.10a' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-25/+0
2023-02-02fs: Remove CONFIG_SRCUPaul E. McKenney1-25/+0
2023-01-11fs: remove locks_inodeJeff Layton1-14/+14
2023-01-11filelock: move file locking definitions to separate header fileJeff Layton1-0/+1
2022-11-30Add process name and pid to locks warningAndi Kleen1-1/+1
2022-11-30filelock: add a new locks_inode_context accessor functionJeff Layton1-12/+12
2022-11-30filelock: new helper: vfs_inode_has_locksJeff Layton1-0/+23
2022-11-17filelock: WARN_ON_ONCE when ->fl_file and filp don't matchJeff Layton1-0/+3
2022-08-17locks: Fix dropped call to ->fl_release_private()David Howells1-0/+1
2022-07-18fs/lock: Rearrange ops in flock syscall.Kuniyuki Iwashima1-24/+19
2022-07-18fs/lock: Don't allocate file_lock in flock_make_lock().Kuniyuki Iwashima1-31/+15
2022-05-19fs/lock: add 2 callbacks to lock_manager_operations to resolve conflictDai Ngo1-3/+30
2022-05-19fs/lock: add helper locks_owner_has_blockers to check for blockersDai Ngo1-0/+28
2022-01-22fs: move locking sysctls where they are usedLuis Chamberlain1-2/+32
2021-10-19locks: remove changelog commentsJ. Bruce Fields1-110/+4
2021-09-10locks: remove LOCK_MAND flock lock supportJeff Layton1-25/+22
2021-09-07Revert "memcg: enable accounting for file lock caches"Linus Torvalds1-4/+2
2021-09-03Merge branch 'akpm' (patches from Andrew)Linus Torvalds1-2/+4
2021-09-03memcg: enable accounting for file lock cachesVasily Averin1-2/+4
2021-08-23fs: remove mandatory file locking supportJeff Layton1-116/+1
2021-05-05Merge tag 'nfsd-5.13-1' of git://git.kernel.org/pub/scm/linux/kernel/git/cel/...Linus Torvalds1-0/+3
2021-04-26Merge tag 'locks-v5.13' of git://git.kernel.org/pub/scm/linux/kernel/git/jlay...Linus Torvalds1-10/+56
2021-04-19nfsd: grant read delegations to clients holding writesJ. Bruce Fields1-0/+3
2021-04-13fs/locks: remove useless assignment in fcntl_getlkTian Tao1-1/+0
2021-03-11fs/locks: print full locks informationLuo Longjun1-9/+56
2021-03-09Revert "nfsd4: a client's own opens needn't prevent delegations"J. Bruce Fields1-3/+0
2020-12-15Merge branch 'exec-for-v5.11' of git://git.kernel.org/pub/scm/linux/kernel/gi...Linus Torvalds1-6/+8
2020-12-10file: Factor files_lookup_fd_locked out of fcheck_filesEric W. Biederman1-6/+8
2020-10-26locks: fix a typo at a kernel-doc markupMauro Carvalho Chehab1-1/+1
2020-10-26locks: Fix UBSAN undefined behaviour in flock64_to_posix_lockLuo Meng1-1/+1
2020-08-23treewide: Use fallthrough pseudo-keywordGustavo A. R. Silva1-3/+3
2020-08-09Merge tag 'nfsd-5.9' of git://git.linux-nfs.org/projects/cel/cel-2.6Linus Torvalds1-0/+3
2020-08-03Merge tag 'filelock-v5.9-1' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-0/+1
2020-07-13nfsd4: a client's own opens needn't prevent delegationsJ. Bruce Fields1-0/+3
2020-06-11Merge tag 'nfsd-5.8' of git://linux-nfs.org/~bfields/linuxLinus Torvalds1-0/+3
2020-06-04Merge branch 'proc-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/eb...Linus Torvalds1-2/+2
2020-06-02locks: add locks_move_blocks in posix_lock_inodeyangerkun1-0/+1
2020-05-19proc: proc_pid_ns takes super_block as an argumentAlexey Gladkov1-2/+2
2020-05-08nfsd: clients don't need to break their own delegationsJ. Bruce Fields1-0/+3
2020-05-05docs: filesystems: convert mandatory-locking.txt to ReSTMauro Carvalho Chehab1-1/+1
2020-04-24Use proc_pid_ns() to get pid_namespace from the proc superblockAlexey Gladkov1-2/+2
2020-03-18locks: reinstate locks_delete_block optimizationLinus Torvalds1-6/+48
2020-03-06locks: fix a potential use-after-free problem when wakeup a waiteryangerkun1-14/+0
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