]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r352350: rangelock: add rangelock_cookie_assert
authorKyle Evans <kevans@FreeBSD.org>
Fri, 13 Dec 2019 04:03:03 +0000 (04:03 +0000)
committerKyle Evans <kevans@FreeBSD.org>
Fri, 13 Dec 2019 04:03:03 +0000 (04:03 +0000)
commite1c0362e6197cd8c6fe20bde0b042209693a78cb
treefd01335df816d704424dd57564765636b2d8c26b
parent750301ef16cea51488705c2ac1814780ac5ccb48
MFC r352350: rangelock: add rangelock_cookie_assert

A future change to posixshm to add file sealing will move locking out of
shm_dotruncate as kern_shm_open() will require the lock to be held across
the dotruncate until the seal is actually applied. For this, the cookie is
passed into shm_dotruncate_locked which asserts RCA_WLOCKED.
sys/kern/kern_rangelock.c
sys/sys/rangelock.h