diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2022-11-13 20:04:21 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2022-11-13 20:07:22 -0500 |
commit | c1e4d447f6dd0ee60495b651436d2055db7777ed (patch) | |
tree | 36a657f7018cecc6bad43e0e178ef1913154eba0 /linux/six.c | |
parent | 980f7437e2588d100456640cb863908a3cc6fc77 (diff) |
Update bcachefs sources to 8d3fc97ca3 bcachefs: Fixes for building in userspace
Diffstat (limited to 'linux/six.c')
-rw-r--r-- | linux/six.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/linux/six.c b/linux/six.c index 39f7ea79..39a9bd6e 100644 --- a/linux/six.c +++ b/linux/six.c @@ -342,7 +342,11 @@ static bool __six_relock_type(struct six_lock *lock, enum six_lock_type type, return true; } -#ifdef CONFIG_LOCK_SPIN_ON_OWNER +/* + * We don't see stable performance with SIX_LOCK_SPIN_ON_OWNER enabled, so it's + * off for now: + */ +#ifdef SIX_LOCK_SPIN_ON_OWNER static inline bool six_optimistic_spin(struct six_lock *lock, struct six_lock_waiter *wait) |