[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.64N.0710181655120.4701@blysk.ds.pg.gda.pl>
Date: Thu, 18 Oct 2007 16:58:34 +0100 (BST)
From: "Maciej W. Rozycki" <macro@...ux-mips.org>
To: Oleg Nesterov <oleg@...sign.ru>
cc: Jarek Poplawski <jarkao2@...pl>,
Andy Fleming <afleming@...escale.com>,
Andrew Morton <akpm@...ux-foundation.org>,
Jeff Garzik <jgarzik@...ox.com>, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [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 netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists