Re: pipex_iface_fini() release multicast session under NET_LOCK()

2020-07-28 Thread Vitaliy Makkoveev
On Tue, Jul 28, 2020 at 10:23:08AM +0200, Martin Pieuchot wrote: > On 17/07/20(Fri) 16:29, Vitaliy Makkoveev wrote: > > We are going to lock the whole pipex(4) by NET_LOCK(). So move > > `multicast_session' freeing undet NET_LOCK() too. > > pipex_iface_fini() should be called on the last reference

Re: pipex_iface_fini() release multicast session under NET_LOCK()

2020-07-28 Thread Martin Pieuchot
On 17/07/20(Fri) 16:29, Vitaliy Makkoveev wrote: > We are going to lock the whole pipex(4) by NET_LOCK(). So move > `multicast_session' freeing undet NET_LOCK() too. pipex_iface_fini() should be called on the last reference of the descriptor. So this shouldn't be necessary. If there's an issue w

pipex_iface_fini() release multicast session under NET_LOCK()

2020-07-17 Thread Vitaliy Makkoveev
We are going to lock the whole pipex(4) by NET_LOCK(). So move `multicast_session' freeing undet NET_LOCK() too. Index: sys/net/pipex.c === RCS file: /cvs/src/sys/net/pipex.c,v retrieving revision 1.120 diff -u -p -r1.120 pipex.c ---