rxrpc kernel sockets hold additional reference to dst

David Howells dhowells at redhat.com
Fri Jan 29 09:51:45 EST 2021


Vadim Fedorenko <vfedorenko at novek.ru> wrote:

> 
> And the next problem is a dead lock of releasing references when it was
> initiated by namespace destruction. Releasing of netdevices is done earlier
> than subsystems and it assumes that all the refernces to netdevices are
> released. But in rxrpc subsystem socket destruction (which could release
> sk_rx_dst) is done in subsystem destruction which should be done after
> netdevices.

Would simply changing (un)register_pernet_subsys() to
(un)register_pernet_device() for both rxrpc and afs suffice?

David




More information about the linux-afs mailing list