[lkml]   [2006]   [Jul]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [Patch 6/6] per task delay accounting taskstats interface: fix clone skbs for each listener
    On Tue, 11 Jul 2006 00:36:39 -0400
    Shailabh Nagar <> wrote:

    > down_write(&listeners->sem);
    > list_for_each_entry_safe(s, tmp, &listeners->list, list) {
    > - ret = genlmsg_unicast(skb, s->pid);
    > + skb_next = NULL;
    > + if (!list_islast(&s->list, &listeners->list)) {
    > + skb_next = skb_clone(skb_cur, GFP_KERNEL);

    If we do a GFP_KERNEL allocation with this semaphore held, and the
    oom-killer tries to kill something to satisfy the allocation, and the
    killed task gets stuck on that semaphore, I wonder of the box locks up.

    Probably it'll work out OK if the semaphore is taken after that task has
    had some resources torn down.
    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: 2006-07-11 12:09    [W:0.020 / U:8.272 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site