[ovs-dev] [PATCH 03/10] datapath: Add get_vport_protected().

Ben Pfaff blp at nicira.com
Wed Dec 29 17:55:59 UTC 2010


On Tue, Dec 28, 2010 at 08:50:41PM -0800, Jesse Gross wrote:
> In some places we access the array of datapath ports without
> RCU protection.  This introduces a new function to check that in
> these case the dp mutex is held for protection.
> 
> Found with sparse.
> 
> Signed-off-by: Jesse Gross <jesse at nicira.com>

I still don't see how dp->mutex is held inside do_destroy_dp().
Probably I am missing something.

Otherwise looks good,
Acked-by: Ben Pfaff <blp at nicira.com>




More information about the dev mailing list