Re: [ovs-dev] [PATCH] lib/classifier: Make classifier iteration more robust.

2014-10-17 Thread Jarno Rajahalme
I’ll see if we can make the iteration both safe and lockless, so there is no need to review this patch at this moment. Jarno On Oct 16, 2014, at 4:24 PM, Jarno Rajahalme wrote: > This patch changes the classifier internal mutex to a recursive type. > This allows simplification of locking dur

[ovs-dev] [PATCH] lib/classifier: Make classifier iteration more robust.

2014-10-16 Thread Jarno Rajahalme
This patch changes the classifier internal mutex to a recursive type. This allows simplification of locking during iteration. Accurate iteration requires classifier_inserts to be exluded during iteration. To this end we take the internal mutex at the start of the iteration. To allow rule removal