Date: Wed, 12 Sep 2007 11:26:05 GMT From: Kip Macy <kmacy@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 126334 for review Message-ID: <200709121126.l8CBQ52Z009600@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=126334 Change 126334 by kmacy@kmacy_home:ethng on 2007/09/12 11:25:57 lock shared with rlock Affected files ... .. //depot/projects/ethng/src/sys/net/radix.h#3 edit Differences ... ==== //depot/projects/ethng/src/sys/net/radix.h#3 (text+ko) ==== @@ -148,8 +148,8 @@ rw_init(&(rnh)->rnh_lock, "radix node head") #define RADIX_NODE_HEAD_LOCK(rnh) rw_wlock(&(rnh)->rnh_lock) #define RADIX_NODE_HEAD_UNLOCK(rnh) rw_wunlock(&(rnh)->rnh_lock) -#define RADIX_NODE_HEAD_LOCK_SHARED(rnh) rw_wlock(&(rnh)->rnh_lock) -#define RADIX_NODE_HEAD_UNLOCK_SHARED(rnh) rw_wunlock(&(rnh)->rnh_lock) +#define RADIX_NODE_HEAD_LOCK_SHARED(rnh) rw_rlock(&(rnh)->rnh_lock) +#define RADIX_NODE_HEAD_UNLOCK_SHARED(rnh) rw_runlock(&(rnh)->rnh_lock) #define RADIX_NODE_HEAD_DESTROY(rnh) rw_destroy(&(rnh)->rnh_lock) #define RADIX_NODE_HEAD_LOCK_ASSERT(rnh) rw_assert(&(rnh)->rnh_lock, RA_LOCKED) #endif /* _KERNEL */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200709121126.l8CBQ52Z009600>