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 the blocked_lock_lock held!

Proto:static int posix_locks_deadlock(struct file_lock *caller_fl, struct file_lock *block_fl)

Type:int

Parameter:

TypeParameterName
struct file_lock *caller_fl
struct file_lock *block_fl
1009  i = 0
1011  lockdep_assert_held( & 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)
1017  If IS_OFDLCK(caller_fl) Then Return 0
1020  When block_fl = Find a lock that the owner of the given block_fl is blocking on. cycle
1021  If i++ > Deadlock detection:* We attempt to detect deadlocks that are due purely to posix file* locks.* We assume that a task can be waiting for at most one lock at a time.* So for any acquired lock, the process holding that lock may be Then Return 0
1023  If Check whether two locks have the same owner. Then Return 1
1026  Return 0
Caller
NameDescribe
posix_lock_inode