Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\locks.c Create Date:2022-07-28 20:25:27
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Must be called with flc_lock held.

Proto:static void locks_insert_block(struct file_lock *blocker, struct file_lock *waiter, conflict(struct file_lock*,struct file_lock*))

Type:void

Parameter:

TypeParameterName
struct file_lock *blocker
struct file_lock *waiter
boolconflict
827  spin_lock( & This lock protects the blocked_hash. Generally, if you're accessing it, you* want to be holding this lock.* In addition, it also protects the fl->fl_blocked_requests list, and the* fl->fl_blocker pointer for file_lock structures that are acting as lock)
828  Insert waiter into blocker's block list.* We use a circular list so that processes can be easily woken up in* the order they blocked. The documentation doesn't require this but* it seems like the reasonable thing to do.
829  spin_unlock( & This lock protects the blocked_hash. Generally, if you're accessing it, you* want to be holding this lock.* In addition, it also protects the fl->fl_blocked_requests list, and the* fl->fl_blocker pointer for file_lock structures that are acting as lock)
Caller
NameDescribe
flock_lock_inodeTry to create a FLOCK lock on filp
__break_leaserevoke all outstanding leases on file