Re: [PATCH] add unschedule_delayed_work to the workqueue API

From: Andrew Morton
Date: Mon Oct 18 2004 - 16:28:48 EST


James Bottomley <James.Bottomley@xxxxxxxxxxxx> wrote:
>
> I'm in the process of moving some of our scsi timers which do more work
> than just a few lines of code into schedule_work() instead. The problem
> is that the workqueue API lacks the equivalent of del_timer_sync().

The usual way of doing this is:

cancel_delayed_work(...);
flush_workqueue(...);


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