Re: Blocking memory allocation & solock()

2017-08-21 Thread Mark Kettenis
> Date: Mon, 21 Aug 2017 15:35:30 +0200 > From: Martin Pieuchot > > On 21/08/17(Mon) 15:33, Martin Pieuchot wrote: > > I'd like to reduce the number of blocking memory allocations holding > > the NET_LOCK(). > > > > Diff below moves m_get(M_WAIT) before grabbing the socket lock for > > sogetopt(

Re: Blocking memory allocation & solock()

2017-08-21 Thread Martin Pieuchot
On 21/08/17(Mon) 15:33, Martin Pieuchot wrote: > I'd like to reduce the number of blocking memory allocations holding > the NET_LOCK(). > > Diff below moves m_get(M_WAIT) before grabbing the socket lock for > sogetopt(). Diff below includes the prototype change. ok? Index: kern/uipc_socket.c ==

Blocking memory allocation & solock()

2017-08-21 Thread Martin Pieuchot
I'd like to reduce the number of blocking memory allocations holding the NET_LOCK(). Diff below moves m_get(M_WAIT) before grabbing the socket lock for sogetopt(). ok? Index: kern/uipc_socket.c === RCS file: /cvs/src/sys/kern/uipc_s