On Mon, Oct 22, 2007 at 10:02:59PM +0400, Oleg Nesterov wrote: ... > If this work doesn't rearm itself - yes. (otherwise, the same ->func > can run twice _at the same time_) > > But again, in this case wait_on_work() after try_to_grab_pending() == 1 > doesn't block, so we can just do > > if (cancel_work_sync(w)) > w->func(); > ...but, if it were run just before work_clear_pending()? Jarek P. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- References:
- Re: [PATCH] PHYLIB: IRQ event workqueue handling fixes
- From: "Maciej W. Rozycki" <[email protected]>
- Re: [PATCH] PHYLIB: IRQ event workqueue handling fixes
- From: Jarek Poplawski <[email protected]>
- Re: [PATCH] PHYLIB: IRQ event workqueue handling fixes
- From: "Maciej W. Rozycki" <[email protected]>
- Re: [PATCH] PHYLIB: IRQ event workqueue handling fixes
- From: Jarek Poplawski <[email protected]>
- Re: [PATCH] PHYLIB: IRQ event workqueue handling fixes
- From: Jarek Poplawski <[email protected]>
- [PATCH] flush_work_sync vs. flush_scheduled_work Re: [PATCH] PHYLIB: IRQ event workqueue handling fixes
- From: Jarek Poplawski <[email protected]>
- Re: [PATCH] flush_work_sync vs. flush_scheduled_work Re: [PATCH] PHYLIB: IRQ event workqueue handling fixes
- From: Oleg Nesterov <[email protected]>
- Re: [PATCH] flush_work_sync vs. flush_scheduled_work Re: [PATCH] PHYLIB: IRQ event workqueue handling fixes
- From: Jarek Poplawski <[email protected]>
- Re: [PATCH] flush_work_sync vs. flush_scheduled_work Re: [PATCH] PHYLIB: IRQ event workqueue handling fixes
- From: Jarek Poplawski <[email protected]>
- Re: [PATCH] flush_work_sync vs. flush_scheduled_work Re: [PATCH] PHYLIB: IRQ event workqueue handling fixes
- From: Oleg Nesterov <[email protected]>
- Re: [PATCH] PHYLIB: IRQ event workqueue handling fixes
- Prev by Date: Re: LSM conversion to static interface
- Next by Date: Re: LSM conversion to static interface
- Previous by thread: Re: [PATCH] flush_work_sync vs. flush_scheduled_work Re: [PATCH] PHYLIB: IRQ event workqueue handling fixes
- Next by thread: Re: [PATCH] flush_work_sync vs. flush_scheduled_work Re: [PATCH] PHYLIB: IRQ event workqueue handling fixes
- Index(es):