Re: [patch net-next v5 0/8] switchdev: change locking

2015-10-15 Thread David Miller
From: Jiri Pirko Date: Wed, 14 Oct 2015 19:40:47 +0200 > This is something which I'm currently struggling with. > Callers of attr_set and obj_add/del often hold not only RTNL, but also > spinlock (bridge). So in that case, the driver implementing the op cannot > sleep. > > The way rocker is dea

[patch net-next v5 0/8] switchdev: change locking

2015-10-14 Thread Jiri Pirko
From: Jiri Pirko This is something which I'm currently struggling with. Callers of attr_set and obj_add/del often hold not only RTNL, but also spinlock (bridge). So in that case, the driver implementing the op cannot sleep. The way rocker is dealing with this now is just to invoke driver operati