]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Enchance the shared page chunk allocator.
authorKonstantin Belousov <kib@FreeBSD.org>
Fri, 22 Jun 2012 06:39:28 +0000 (06:39 +0000)
committerKonstantin Belousov <kib@FreeBSD.org>
Fri, 22 Jun 2012 06:39:28 +0000 (06:39 +0000)
commita9d8437c6dcbfe7eeaeaa4c81787f27a97ccbbad
tree9fbaec8ffd984ed4fb16dc0fb59eb241295239ac
parent232aa31fb952dbcf9308ae8f414a019520df0360
Enchance the shared page chunk allocator.

Do not rely on the busy state of the page from which we allocate the
chunk, to protect allocator state. Use statically allocated sx lock
instead.

Provide more flexible KPI. In particular, allow to allocate chunk
without providing initial data, and allow writes into existing
allocation. Allow to get an sf buf which temporary maps the chunk, to
allow sequential updates to shared page content without unmapping in
between.

Reviewed by: jhb
Tested by: flo
MFC after: 1 month
sys/kern/kern_exec.c
sys/sys/sysent.h