[lkml]   [2002]   [Feb]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] __free_pages_ok oops
    "David S. Miller" wrote:
    > From: Andrew Morton <>
    > Date: Wed, 06 Feb 2002 22:19:32 -0800
    > It's only a problem if this is the final put_page(). In the
    > case of sendfile(), process-context code can be taught to take
    > a temporary reference on the page, and only release it after the network
    > stack is known to have finished with the page. sendfile is synchronous, yes?
    > Userspace can return long before the SKBs are free'd up. That SKB
    > free doesn't happen until the ACKs come back from the receiver.

    I feel that presence on the lru list should contribute to
    page->count. It seems a bit weird and kludgy that this
    is not so.

    If we were to do this then would this not fix networking's
    problem? The skb free wouldn't release the page - it would
    be left on the LRU with ->count == 1 and kswapd would reap it.

    (Says me, hoping that Hugh will code it :))

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:24    [W:0.045 / U:0.120 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site