mirror of
https://github.com/versity/scoutfs.git
synced 2026-07-19 14:32:32 +00:00
f604bb4b77
Add last_user_pid[mode] and last_user_ino[mode] arrays to scoutfs_lock, filled in at the granted-mode path alongside the existing counts. The inode is passed by callers for all per-inode cases, and set to 0 for others. PID is from the current task. The client_locks line is expanded with "ino: rd I wr I wo I pid: rd P wr P wo P". Existing users:/waiters: field positions are unchanged. A simple test case demonstrates the functionality for the two simple inode/non-inode case, and for a contended lock case (multiple rd/wr lock holders). Signed-off-by: Auke Kok <auke.kok@versity.com>