]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
rmlock(9): add an RM_DUPOK flag
authorMitchell Horne <mhorne@FreeBSD.org>
Thu, 8 Apr 2021 17:41:19 +0000 (14:41 -0300)
committerMitchell Horne <mhorne@FreeBSD.org>
Fri, 16 Apr 2021 14:20:37 +0000 (11:20 -0300)
commit67bf33e04652b6dd1a948c8b93bb6bebbb1519d5
tree9087d2aedba2fd028bd96fd2a5a6e80f158aeab6
parenta83c64a59cf5dd4c8eb86ce9dbdcf84c2c874fb8
rmlock(9): add an RM_DUPOK flag

Allows for duplicate locks to be acquired without witness complaining.
Similar flags exists already for rwlock(9) and sx(9).

Reviewed by: markj
Sponsored by: NetApp, Inc.
Sponsored by: Klara, Inc.

(cherry picked from commit 2816bd8442bc323d50434d0e64cb4b7c10a195e8)
share/man/man9/rmlock.9
sys/kern/kern_rmlock.c
sys/sys/rmlock.h