KEYS: Invert FINAL_PUT bit
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 28 May 2025 12:18:17 +0000 (13:18 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 11 Jun 2025 18:57:14 +0000 (11:57 -0700)
commit488ef3560196ee10fc1c5547e1574a87068c3494
tree7ea1bcd3ffe3aa051adcdd0946b014fb8a22647a
parentaef17cb3d3c43854002956f24c24ec8e1a0e3546
KEYS: Invert FINAL_PUT bit

Invert the FINAL_PUT bit so that test_bit_acquire and clear_bit_unlock
can be used instead of smp_mb.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David Howells <dhowells@redhat.com>
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/key.h
security/keys/gc.c
security/keys/key.c