summaryrefslogtreecommitdiffstats
path: root/include/linux/closure.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2024-06-22 20:52:39 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2024-06-23 00:57:21 -0400
commitf44cc269a1c148ad83332d85fe54607e8874ca79 (patch)
tree13c72b423b7756eaa1f588c2165653faaee8dc22 /include/linux/closure.h
parent9bd01500e4d8c3c3387076581c19b3987776d7af (diff)
downloadlinux-f44cc269a1c148ad83332d85fe54607e8874ca79.tar.gz
linux-f44cc269a1c148ad83332d85fe54607e8874ca79.tar.bz2
linux-f44cc269a1c148ad83332d85fe54607e8874ca79.zip
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: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'include/linux/closure.h')
0 files changed, 0 insertions, 0 deletions