summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_sx.c
diff options
context:
space:
mode:
authorattilio <attilio@FreeBSD.org>2011-11-21 12:59:52 +0000
committerattilio <attilio@FreeBSD.org>2011-11-21 12:59:52 +0000
commitb95134ea01e46b282074a03ea01be1fc9d95a328 (patch)
tree40b25c5a1fa8695b73e18ea776cf41e1418873fd /sys/kern/kern_sx.c
parent3aadfef0044607b2474ae1bba0c2fca2b37e18e3 (diff)
downloadFreeBSD-src-b95134ea01e46b282074a03ea01be1fc9d95a328.zip
FreeBSD-src-b95134ea01e46b282074a03ea01be1fc9d95a328.tar.gz
Introduce the same mutex-wise fix in r227758 for sx locks.
The functions that offer file and line specifications are: - sx_assert_ - sx_downgrade_ - sx_slock_ - sx_slock_sig_ - sx_sunlock_ - sx_try_slock_ - sx_try_xlock_ - sx_try_upgrade_ - sx_unlock_ - sx_xlock_ - sx_xlock_sig_ - sx_xunlock_ Now vm_map locking is fully converted and can avoid to know specifics about locking procedures. Reviewed by: kib MFC after: 1 month
Diffstat (limited to 'sys/kern/kern_sx.c')
-rw-r--r--sys/kern/kern_sx.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/kern_sx.c b/sys/kern/kern_sx.c
index 9230beb..8121d00 100644
--- a/sys/kern/kern_sx.c
+++ b/sys/kern/kern_sx.c
@@ -256,7 +256,7 @@ _sx_slock(struct sx *sx, int opts, const char *file, int line)
}
int
-_sx_try_slock(struct sx *sx, const char *file, int line)
+sx_try_slock_(struct sx *sx, const char *file, int line)
{
uintptr_t x;
@@ -300,7 +300,7 @@ _sx_xlock(struct sx *sx, int opts, const char *file, int line)
}
int
-_sx_try_xlock(struct sx *sx, const char *file, int line)
+sx_try_xlock_(struct sx *sx, const char *file, int line)
{
int rval;
@@ -364,7 +364,7 @@ _sx_xunlock(struct sx *sx, const char *file, int line)
* Return 1 if if the upgrade succeed, 0 otherwise.
*/
int
-_sx_try_upgrade(struct sx *sx, const char *file, int line)
+sx_try_upgrade_(struct sx *sx, const char *file, int line)
{
uintptr_t x;
int success;
@@ -394,7 +394,7 @@ _sx_try_upgrade(struct sx *sx, const char *file, int line)
* Downgrade an unrecursed exclusive lock into a single shared lock.
*/
void
-_sx_downgrade(struct sx *sx, const char *file, int line)
+sx_downgrade_(struct sx *sx, const char *file, int line)
{
uintptr_t x;
int wakeup_swapper;
OpenPOWER on IntegriCloud