bcachefs: Fix trans_lock_write()
On failure to get a write lock (because we had a conflicting read lock),
we need to make sure to upgrade the read lock to an intent lock - or we
could end up spinning.
Signed-off-by:
Kent Overstreet <kent.overstreet@gmail.com>
Showing
Please register or sign in to comment