Re: Warning in net/ipv4/af_inet.c:154

Anton Blanchard
2010-05-26T03:24:22Z

Hi,

> > Which is:
> >
> > WARN_ON(sk->sk_forward_alloc);
> >
>
> Yes, the infamous one :)
>
> Is it reproductible ? What kind of workload is it ?
> What is the NIC involved ?

It was running sysbench against a postgresql database over localhost. In
each case I checked, sk_forward_alloc was less than one page.

I notice we update sk_forward_alloc in sk_mem_charge and sk_mem_uncharge.
Since it isn't an atomic variable I went looking for a lock somewhere in
the call chain (first thought was the socket lock). I couldn't find
anything, but I could easily be missing something.

Anton