]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
posixshm: start counting writeable mappings
authorKyle Evans <kevans@FreeBSD.org>
Tue, 3 Sep 2019 20:33:38 +0000 (20:33 +0000)
committerKyle Evans <kevans@FreeBSD.org>
Tue, 3 Sep 2019 20:33:38 +0000 (20:33 +0000)
commitdca52ab480bfe71c3dc1d86822e551a7d1c9ec72
tree38c8ee0c6ae1d6fa29aefb2c4b4c89927beb190a
parentfe7bcbaf50b1e3daa858e3e965b2d4605d160daa
posixshm: start counting writeable mappings

r351650 switched posixshm to using OBJT_SWAP for shm_object

r351795 added support to the swap_pager for tracking writeable mappings

Take advantage of this and start tracking writeable mappings; fd sealing
will use this to reject a seal on writing with EBUSY if any such mapping
exist.

Reviewed by: kib, markj
Differential Revision: https://reviews.freebsd.org/D21456
sys/kern/uipc_shm.c