aboutsummaryrefslogtreecommitdiffstats
path: root/fs/bcachefs/alloc_foreground.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-08-12 15:05:06 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:10:10 -0400
commitc294ea50da4b1a0ee84253f46391aa87a6efe91c (patch)
tree681f242bac712ffaf718ffb54012b5b7c23e9d8c /fs/bcachefs/alloc_foreground.c
parentbcachefs: Check for directories in deleted inodes btree (diff)
downloadlinux-rng-c294ea50da4b1a0ee84253f46391aa87a6efe91c.tar.xz
linux-rng-c294ea50da4b1a0ee84253f46391aa87a6efe91c.zip
bcachefs: six locks: Fix missing barrier on wait->lock_acquired
Six locks do lock handoff via the wakeup path: the thread doing the wakeup also takes the lock on behalf of the waiter, which means the waiter only has to look at its waitlist entry, and doesn't have to touch the lock cacheline while another thread is using it. Linus noticed that this needs a real barrier, which this patch fixes. Also add a comment for the should_sleep_fn() error path. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Boqun Feng <boqun.feng@gmail.com> Cc: linux-bcachefs@vger.kernel.org Cc: linux-kernel@vger.kernel.org
Diffstat (limited to 'fs/bcachefs/alloc_foreground.c')
0 files changed, 0 insertions, 0 deletions