[ovs-dev] [PATCH] datapath: Fix ovs_flow_free() ovs-lock assert.

Jesse Gross jesse at nicira.com
Wed Jan 29 18:44:29 UTC 2014


On Wed, Jan 29, 2014 at 9:20 AM,  <pshelar at nicira.com> wrote:
> From: Pravin <pshelar at nicira.com>
>
> ovs_flow_free() is not called under ovs-lock during packet
> execute path. Since packet execute does not touch flow->mask,
> there is no need to take that lock either. So move assert in
> case where flow->mask is checked.
>
> Found by code inspection.
>
> Signed-off-by: Pravin B Shelar <pshelar at nicira.com>

The idea for putting it here is that callers should always hold OVS
mutex and by putting the check earlier it increases the chances that
problems will be caught sooner.



More information about the dev mailing list