On Fri, Dec 16, 2016 at 10:28:11AM +0800, gaohaifeng wrote:
> From: zangchuanqiang <[email protected]>
> 
> An alternative "writer nonrecursive" rwlock allows recursive
> read-locks to succeed only if there are no threads waiting for the
> write-lock. In the function ovs_rwlock_init(), there exist a problem,
> the parameter of 'attr' is not used to set the attributes of ovs_rwlock 'l_',
> just because use pthread_rwlock_init(&l->lock, NULL) to init l->lock.
> 
> The attr object needs to be passed to the pthread_rwlock_init()
> call in order to make use of it.
> 
> Signed-off-by: zangchuanqiang <[email protected]>

Oops.  Thank you for the fix!  I simplified this a bit and applied it to
master.  I did not backport to it to previous versions due to the risk
that this could break otherwise working setups.

It looks like this is your first contribution to OVS.  Welcome to the
team!
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to