six locks: Centralize setting of waiting bit
authorKent Overstreet <kent.overstreet@linux.dev>
Sun, 21 May 2023 00:37:53 +0000 (20:37 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:10:02 +0000 (17:10 -0400)
commitd2c86b77de5894bbe26ecbf5214227f61855aed7
tree0a879c04b004fd61bf510344c27ddaa0c862e9c6
parent0157f9c5a7c77b1cb89756351929dba4b28d5f75
six locks: Centralize setting of waiting bit

Originally, the waiting bit was always set by trylock() on failure:
however, it's now set by __six_lock_type_slowpath(), with wait_lock held
- which is the more correct place to do it.

That made setting the waiting bit in trylock redundant, so this patch
deletes that.

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