vfs_cancel_lock(9)
β¨ vfs_cancel_lock(9) β¨
okay so bestie, welcome to the Kernel API Manual π β today's main character is vfs_cancel_lock, and honestly? she's short, she's sweet, she does one thing and she does it slayfully. no cap. π
π NAME π
vfs_cancel_lock β file byte range unblock lock π¦
like, it unblocks a blocked byte-range lock request. that's the whole vibe. periodt.
πΈ SYNOPSIS πΈ
int vfs_cancel_lock (struct file *filp , struct file_lock *fl );
look at her. two args, returns an int, zero drama. π
π§ ARGUMENTS π§
filpβ the file you're applying the unblock to π«Ά like, the file. the one getting unblocked. yes that one.flβ the lock that's getting unblocked π this is the actual lock being cancelled, bestie, hold her gently.
β DESCRIPTION β
so the whole point: lock managers use this to cancel blocked requests π₯ that's it. that's the function. if you're a lock manager with a blocked request that needs cancelling, this is your girl. iykyk. π
no mystery, no hidden lore β used by lock managers to cancel blocked requests. iconic behaviour, honestly. π
π¦ SEE ALSO π¦
Kernel file ./fs/locks.c and the whole friend group:
locks_owner_has_blockers(9)lease_open_conflict(9)locks_delete_block(9)posix_lock_file(9)posix_lock_inode_wait(9)inode_lease_ignore_mask(9)__break_lease(9)lease_get_mtime(9)__fcntl_getlease(9)generic_setlease(9)vfs_setlease(9)fcntl_setlease(9)fcntl_setdeleg(9)flock_lock_inode_wait(9)locks_lock_inode_wait(9)sys_flock(9)vfs_test_lock(9)locks_translate_pid(9)vfs_lock_file(9)vfs_inode_has_locks(9)
literally the entire lock-adjacent friend group showed up to the group chat π love that for them. go read all twenty, no skipping, i'll know. π
lowkey a reminder: this page lives in ./fs and it's dated October 2026 β so if you're reading this from the future, hi bestie, you're doing amazing π
mwah, that's the page!! sourced from ./fs, stamped October 2026, in the Kernel API Manual πβ¨ go cancel some blocked requests, queen ππ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms