]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Initial checkin for rmlock (read mostly lock) a multi reader single writer
authorStephan Uphoff <ups@FreeBSD.org>
Thu, 8 Nov 2007 14:47:55 +0000 (14:47 +0000)
committerStephan Uphoff <ups@FreeBSD.org>
Thu, 8 Nov 2007 14:47:55 +0000 (14:47 +0000)
commitf53d15fe1b8a7a7df972f253b38c698f6ca45b71
treee657852bc96f8f77553f7abb0596889a6b8d5e00
parent0559b904bc69c95a21b7b5a286242091064aa485
Initial checkin for rmlock (read mostly lock) a multi reader single writer
lock optimized for almost exclusive reader access. (see also rmlock.9)

TODO:
    Convert to per cpu variables linkerset as soon as it is available.
    Optimize UP (single processor)  case.
12 files changed:
share/man/man9/locking.9
share/man/man9/rmlock.9 [new file with mode: 0644]
sys/conf/files
sys/kern/kern_rmlock.c [new file with mode: 0644]
sys/kern/subr_lock.c
sys/kern/subr_pcpu.c
sys/kern/subr_smp.c
sys/sys/_rmlock.h [new file with mode: 0644]
sys/sys/lock.h
sys/sys/pcpu.h
sys/sys/rmlock.h [new file with mode: 0644]
sys/sys/smp.h