diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2022-09-24 01:33:13 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2022-10-03 23:54:50 -0400 |
commit | 054de1a405017bc1bb4ae4246a0e1e2ff5f5259c (patch) | |
tree | a544317aa4b5fe23cf974405c1672ff2c2307dd9 /include/linux/six.h | |
parent | 8cd358f239097fec2a021d4a7f71c44ef77aa8f3 (diff) |
six locks: Add start_time to six_lock_waiter
This is needed by the cycle detector in bcachefs - we need a way to
iterater over waitlist entries while dropping and retaking the waitlist
lock.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'include/linux/six.h')
-rw-r--r-- | include/linux/six.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/six.h b/include/linux/six.h index f336ae049df8..fe4b6292d773 100644 --- a/include/linux/six.h +++ b/include/linux/six.h @@ -119,6 +119,7 @@ struct six_lock_waiter { struct task_struct *task; enum six_lock_type lock_want; bool lock_acquired; + u64 start_time; }; typedef int (*six_lock_should_sleep_fn)(struct six_lock *lock, void *); |