[ovs-dev] [PATCH 17/19] datapath: dp_sysfs_add_dp() needs RTNL lock.
Ben Pfaff
blp at nicira.com
Thu Dec 9 18:18:34 UTC 2010
On Wed, Dec 08, 2010 at 10:14:15PM -0800, Jesse Gross wrote:
> We currently drop RTNL before adding a new datapath to sysfs but
> then access the dp data structures. This moves the call to
> dp_sysfs_add_dp() before we drop the locks to prevent a potential
> race. All other calls to sysfs functions already hold RTNL.
>
> Found with lockdep.
>
> Signed-off-by: Jesse Gross <jesse at nicira.com>
Acked-by: Ben Pfaff <blp at nicira.com>
More information about the dev
mailing list