diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2022-09-24 08:33:13 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-23 00:09:41 +0300 |
commit | f6ea2d575d70ab0e1aaa9f9fced1d04e6dd6ef4f (patch) | |
tree | ffb897fe2550908c27f623d8dc91ccea36ef8aa2 /fs/bcachefs/six.h | |
parent | 0bfb9f42b7b16aa11a7b5d283b0b7b98d11476b7 (diff) | |
download | linux-f6ea2d575d70ab0e1aaa9f9fced1d04e6dd6ef4f.tar.xz |
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 'fs/bcachefs/six.h')
-rw-r--r-- | fs/bcachefs/six.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/bcachefs/six.h b/fs/bcachefs/six.h index ab06773e8094..757f8aa4d339 100644 --- a/fs/bcachefs/six.h +++ b/fs/bcachefs/six.h @@ -126,6 +126,7 @@ struct six_lock_waiter { struct list_head list; struct task_struct *task; enum six_lock_type lock_want; + u64 start_time; }; typedef int (*six_lock_should_sleep_fn)(struct six_lock *lock, void *); |