]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: Fix lost rebalance wakeups
authorKent Overstreet <kent.overstreet@linux.dev>
Sat, 24 May 2025 19:29:50 +0000 (15:29 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Tue, 27 May 2025 04:02:44 +0000 (00:02 -0400)
commit9e2c3c2ed4772cb0e2ad5b0def08c2c943483445
treef80068bbd79d0176c6d47ec133ca45c7bab7c9cf
parentdc37dcca8cb71d7ddddfd5035619eeb27c5aab8d
bcachefs: Fix lost rebalance wakeups

Fix a missing wakeup in

'bcachefs set-file-option' -> xattr option update -> inode_write

this was missing because the wakeup needs to happen after transaction
commit. Also, add a 'kick' counter, to make sure we don't miss a wakeup
that occured right after we finished checking the rebalance_work btree.

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