Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit f44cc269 authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: fix seqmutex_relock()


We were grabbing the sequence number before unlock incremented it - fix
this by moving the increment to seqmutex_lock() (so the seqmutex_relock()
failure path skips the mutex_trylock()), and returning the sequence
number from unlock(), to make the API simpler and safer.

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 9bd01500
Branches
Tags
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