Re: [ovs-dev] [PATCH] ofproto-dpif-upcall: Fix race condition while purging

2021-05-26 Thread Jianbo Liu
The 05/26/2021 14:59, Simon Horman wrote: > On Fri, May 21, 2021 at 01:01:29AM +, Jianbo Liu wrote: > > The 05/11/2021 11:38, Roi Dayan wrote: > > > From: Jianbo Liu > > > > > > There is a race condidtion between purger and handler. Handler may > > > create new ukey and install it while execu

Re: [ovs-dev] [PATCH] ofproto-dpif-upcall: Fix race condition while purging

2021-05-26 Thread Simon Horman
On Fri, May 21, 2021 at 01:01:29AM +, Jianbo Liu wrote: > The 05/11/2021 11:38, Roi Dayan wrote: > > From: Jianbo Liu > > > > There is a race condidtion between purger and handler. Handler may > > create new ukey and install it while executing 'ovs-appctl > > revalidator/purge' command. Howev

Re: [ovs-dev] [PATCH] ofproto-dpif-upcall: Fix race condition while purging

2021-05-20 Thread Jianbo Liu
The 05/11/2021 11:38, Roi Dayan wrote: > From: Jianbo Liu > > There is a race condidtion between purger and handler. Handler may > create new ukey and install it while executing 'ovs-appctl > revalidator/purge' command. However, before handler calls > transition_ukey() in handle_upcalls(), purger

[ovs-dev] [PATCH] ofproto-dpif-upcall: Fix race condition while purging

2021-05-11 Thread Roi Dayan
From: Jianbo Liu There is a race condidtion between purger and handler. Handler may create new ukey and install it while executing 'ovs-appctl revalidator/purge' command. However, before handler calls transition_ukey() in handle_upcalls(), purger may get this ukey from umap, then evict and delete