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

bcachefs: Fix excess transaction restarts in __bchfs_fallocate()



drop_locks_do() should not be used in a fastpath without first trying
the do in nonblocking mode - the unlock and relock will cause excessive
transaction restarts and potentially livelocking with other threads that
are contending for the same locks.

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 1a503904
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