lkml.org 
[lkml]   [2007]   [Oct]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] flush_work_sync vs. flush_scheduled_work Re: [PATCH] PHYLIB: IRQ event workqueue handling fixes
    On Thu, 18 Oct 2007, Oleg Nesterov wrote:

    > If we can't just cancel the work, can't we do something like
    >
    > if (cancel_work_sync(w))
    > w->func(w);
    >
    > instead?

    We do an equivalent of this -- all that we care about that w->func(w)
    would do is enable_irq() and the rest we want to skip at this point. We
    probably do not need the counter in the end though.

    Maciej
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2007-10-18 18:01    [W:4.280 / U:0.056 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site