Subject: Re: [PATCH net V3 1/3] bonding: implement xdo_dev_state_free and call it after deletion

From: Jakub Kicinski <[email-masked]>
Date: Tue, 13 Aug 2024 07:14:45 -0700

On Tue, 13 Aug 2024 02:58:12 +0000 Jianbo Liu wrote:
> > > +       rcu_read_lock();
> > > +       bond = netdev_priv(bond_dev);
> > > +       slave = rcu_dereference(bond->curr_active_slave);
> > > +       real_dev = slave ? slave->dev : NULL;
> > > +       rcu_read_unlock();  
> > 
> > What's holding onto real_dev once you drop the rcu lock here?  
> 
> I think it should be xfrm state (and bond device).

Please explain it in the commit message in more certain terms.