]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: Fix a locking bug in the do_discard_fast() path
authorKent Overstreet <kent.overstreet@linux.dev>
Mon, 17 Jun 2024 13:09:52 +0000 (09:09 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Wed, 19 Jun 2024 22:27:23 +0000 (18:27 -0400)
commit3727ca56049d893859b68f70e50092250de79f28
treec22f243cdeff31c06c989980dc75c89e3084112d
parentd47df4f616d523b4ef832d03ec28b2e6d838067b
bcachefs: Fix a locking bug in the do_discard_fast() path

We can't discard a bucket while it's still open; this needs the
bucket_is_open_safe() version, which takes the open_buckets lock.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/alloc_background.c