Re: inpcb table and socket lock

2018-09-19 Thread Alexander Bluhm
On Mon, Sep 17, 2018 at 04:00:28PM +0200, Alexander Bluhm wrote: > + /* XXXSMP Is it safe to call notify with inpcbtable mutex? */ > if (notify) > (*notify)(inp, errno); visa@ pointed out that this may cause a deadlock as the notify functions may

inpcb table and socket lock

2018-09-17 Thread Alexander Bluhm
Hi, I want to reduce the scope of the net lock and finally get a mutex per inpcb or socket. A step in this direction is to remove the net lock for netstat -an. Introduce a global mutex that protects the tables and hashes for the internet PCBs. To detect detached PCB, set its inp_socket field