[ovs-dev] [PATCH 3/7] lib/ovs-rcu: Support static initialization.

Jarno Rajahalme jrajahalme at nicira.com
Mon Oct 27 20:19:22 UTC 2014


Thanks for the review!

Pushed to master,

  Jarno

On Oct 24, 2014, at 4:15 PM, Ben Pfaff <blp at nicira.com> wrote:

> On Fri, Oct 24, 2014 at 01:36:37PM -0700, Jarno Rajahalme wrote:
>> Currently, OVSRCU_TYPE_INITIALIZER always initializes the RCU pointer
>> as NULL.  There is no reason why the RCU pointer could not be
>> initialized with a non-NULL value, however, as statically allocated
>> memory is even more stable than required for RCU.
>> 
>> This patch changes the initializer to OVSRCU_INITIALIZER(VALUE), which
>> can take any pointer value as a parameter.
>> 
>> This allows rculist, which is introduced in a following patch, to
>> provide an initializer similar to the one in the normal list.
>> 
>> Signed-off-by: Jarno Rajahalme <jrajahalme at nicira.com>
> 
> Acked-by: Ben Pfaff <blp at nicira.com>




More information about the dev mailing list