On Thu, May 10, 2001 at 11:32:25PM +0200, Andrea Arcangeli wrote:
> you said interrupt won't call that function so I don't see the
> GFP_ATOMIC issue.
I said interrupts should not call it, but apparently somebody tries to
call it with GFP_ATOMIC and I'm suspecting that caller is broken (whatever
; If that happens, and the socket uses GFP_ATOMIC allocation, the while (1)
> > > > > loop in sock_alloc_send_skb() will endlessly spin, without ever calling
> > > > > schedule(), and all the time holding the kernel lock ...
> > > >
> > > >
e (1)
> > > > loop in sock_alloc_send_skb() will endlessly spin, without ever calling
> > > > schedule(), and all the time holding the kernel lock ...
> > >
> > > If the socket is using GFP_ATOMIC allocation it should never loop. That is
> > > -not-allowed-
On Thu, May 10, 2001 at 07:30:47PM +0200, Andi Kleen wrote:
> On Thu, May 10, 2001 at 01:57:49PM +0100, Alan Cox wrote:
> > > If that happens, and the socket uses GFP_ATOMIC allocation, the while (1)
> > > loop in sock_alloc_send_skb() will endlessly spin, without ever c
On Thu, May 10, 2001 at 01:57:49PM +0100, Alan Cox wrote:
> > If that happens, and the socket uses GFP_ATOMIC allocation, the while (1)
> > loop in sock_alloc_send_skb() will endlessly spin, without ever calling
> > schedule(), and all the time holding the kernel lock ...
>
> If that happens, and the socket uses GFP_ATOMIC allocation, the while (1)
> loop in sock_alloc_send_skb() will endlessly spin, without ever calling
> schedule(), and all the time holding the kernel lock ...
If the socket is using GFP_ATOMIC allocation it should never loop. That is
-no
Hi Alan,
we've experienced deadlocks that appear to be caused by the loop in
sock_alloc_send_skb(). To trigger this, you need to combine heavy
network load with memory pressure. In this situation, sock_wmalloc()
can fail because it really can't allocate any more memory, even thoug
Hi,
why in sock_alloc_send_skb(sk,
length+hh_len+15,0,flags&MSG_DONTWAIT, &err)
15 is added to the length of the the data of the socket. Here
length=data_len+ip_hdr+udp_hdr all we need is hrd_hdr ie hh_len which is
being added here, why that 15 is needed?
Sour
8 matches
Mail list logo