locking/rwsem: Clarify that RWSEM_READER_OWNED is just a hint
authorWaiman Long <longman@redhat.com>
Thu, 22 Feb 2024 15:05:39 +0000 (10:05 -0500)
committerIngo Molnar <mingo@kernel.org>
Wed, 28 Feb 2024 12:08:38 +0000 (13:08 +0100)
commitd566c78659eccf085f905fd266fc461de92eaa8f
treeac40feae9dc18fb670fdb4ee805d2202e8642789
parentd6cac0b6b0115fd0a5f51a49401473626e4e4fe7
locking/rwsem: Clarify that RWSEM_READER_OWNED is just a hint

Clarify in the comments that the RWSEM_READER_OWNED bit in the owner
field is just a hint, not an authoritative state of the rwsem.

Signed-off-by: Waiman Long <longman@redhat.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Boqun Feng <boqun.feng@gmail.com>
Link: https://lore.kernel.org/r/20240222150540.79981-4-longman@redhat.com
kernel/locking/rwsem.c