diff options
author | rwatson <rwatson@FreeBSD.org> | 2009-05-29 10:52:37 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2009-05-29 10:52:37 +0000 |
commit | 52ba25996039c990d61c87ec08ee18c634d5e1ae (patch) | |
tree | bcd8f26df00704f44c24b12794f3b744baf80489 /sys/kern/kern_osd.c | |
parent | be2772a684b761a0e896a5808a48c30e67fdbbe5 (diff) | |
download | FreeBSD-src-52ba25996039c990d61c87ec08ee18c634d5e1ae.zip FreeBSD-src-52ba25996039c990d61c87ec08ee18c634d5e1ae.tar.gz |
Make the rmlock(9) interface a bit more like the rwlock(9) interface:
- Add rm_init_flags() and accept extended options only for that variation.
- Add a flags space specifically for rm_init_flags(), rather than borrowing
the lock_init() flag space.
- Define flag RM_RECURSE to use instead of LO_RECURSABLE.
- Define flag RM_NOWITNESS to allow an rmlock to be exempt from WITNESS
checking; this wasn't possible previously as rm_init() always passed
LO_WITNESS when initializing an rmlock's struct lock.
- Add RM_SYSINIT_FLAGS().
- Rename embedded mutex in rmlocks to make it more obvious what it is.
- Update consumers.
- Update man page.
Diffstat (limited to 'sys/kern/kern_osd.c')
-rw-r--r-- | sys/kern/kern_osd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_osd.c b/sys/kern/kern_osd.c index 2ce6b6b..184c4f0 100644 --- a/sys/kern/kern_osd.c +++ b/sys/kern/kern_osd.c @@ -394,7 +394,7 @@ osd_init(void *arg __unused) osd_nslots[i] = 0; LIST_INIT(&osd_list[i]); sx_init(&osd_module_lock[i], "osd_module"); - rm_init(&osd_object_lock[i], "osd_object", 0); + rm_init(&osd_object_lock[i], "osd_object"); mtx_init(&osd_list_lock[i], "osd_list", NULL, MTX_DEF); osd_destructors[i] = NULL; osd_methods[i] = NULL; |