Catch up with recent locking changes.

PR:		132546
Submitted by:	pluknet <pluknet@gmail.com>
Reviewed by:	alc
This commit is contained in:
Tom Rhodes 2009-04-03 23:52:47 +00:00
parent 04419f3b80
commit cd5e62f992
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=190680

View File

@ -73,7 +73,6 @@ The
.Fn vm_map_lock_read .Fn vm_map_lock_read
macro obtains a read-lock on macro obtains a read-lock on
.Fa map . .Fa map .
Currently this is implemented as an exclusive lock.
.Pp .Pp
The The
.Fn vm_map_unlock_read .Fn vm_map_unlock_read
@ -93,23 +92,18 @@ macro attempts to obtain a read-lock on
.Fa map . .Fa map .
It returns FALSE if the lock cannot be immediately acquired; It returns FALSE if the lock cannot be immediately acquired;
otherwise return TRUE with the lock acquired. otherwise return TRUE with the lock acquired.
Currently this is implemented as an exclusive lock.
.Pp .Pp
The The
.Fn vm_map_lock_upgrade .Fn vm_map_lock_upgrade
macro attempts to atomically upgrade a read-lock on macro attempts to atomically upgrade a read-lock on
.Fa map .Fa map
to an exclusive lock. to an exclusive lock.
As read-locks are currently implemented as exclusive locks,
this macro is a no-op.
.Pp .Pp
The The
.Fn vm_map_lock_downgrade .Fn vm_map_lock_downgrade
macro attempts to downgrade an exclusive lock on macro attempts to downgrade an exclusive lock on
.Fa map .Fa map
to a read-lock. to a read-lock.
As read-locks are currently implemented as exclusive locks,
this macro is a no-op.
.Sh IMPLEMENTATION NOTES .Sh IMPLEMENTATION NOTES
Currently, all of the locking macros implement their locks as sleep locks. Currently, all of the locking macros implement their locks as sleep locks.
.Sh SEE ALSO .Sh SEE ALSO