Commit 54618087 authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: Mark write locks before taking lock



six locks are unfair: while a thread is blocked trying to take a write
lock, new read locks will fail. The new deadlock cycle detector makes
use of our existing lock tracing, so we need to tell it we're holding a
write lock before we take the lock for it to work correctly.

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 534a591e
Supports Markdown
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