[ovs-dev] [PATCH 2/4] rculist: Use ovsrcu_set() when poisoning.

Jarno Rajahalme jrajahalme at nicira.com
Wed Jun 10 00:05:57 UTC 2015


> On Jun 9, 2015, at 3:30 PM, Ben Pfaff <blp at nicira.com> wrote:
> 
> On Tue, Jun 09, 2015 at 03:25:08PM -0700, Jarno Rajahalme wrote:
>> Should not use ovsrcu_set_hidden() when the pointer may have been
>> visible to other threads already.
>> 
>> Signed-off-by: Jarno Rajahalme <jrajahalme at nicira.com>
> 
> I think that rculist_poison__() is only appropriate when an rculist
> should not be visible to any other threads.  No?

That was my initial thought as well, but we poison for the case other threads are still using it (while they shouldn't), so I thought ovsrcu_set_hidden() is not appropriate here after all. I doubt this has any practical difference either way, more about what is appropriate use.

  Jarno


More information about the dev mailing list