six locks: Use atomic_try_cmpxchg_acquire()
authorKent Overstreet <kent.overstreet@linux.dev>
Thu, 25 May 2023 18:35:06 +0000 (14:35 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:10:02 +0000 (17:10 -0400)
commit2d9200cfe004b8208a04ea15b3967f9a14135be6
treec1ac78cdb31dc0fe941b54842566b85b49e6ca80
parentc4687a4a7536c3b2139faa63e66afd1d3da5bf15
six locks: Use atomic_try_cmpxchg_acquire()

This switches to a newer cmpxchg variant which updates @old for us on
failure, simplifying the cmpxchg loops a bit and supposedly generating
better code.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/six.c