Skip to content
Commit a2d23f3d authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: io clock: run timer fns under clock lock



We don't have a way to flush a timer that's executing the callback, and
this is simple and limited enough in scope that we can just use the lock
instead.

Needed for the next patch that adds direct wakeups from the allocator to
copygc, where we're now more frequently calling io_timer_del() on an
expiring timer.

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent b5cbb42d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment