Re: driver hacking tips (was Re: [PATCH] QStor SATA/RAID driver for2.6.9-rc3)

From: Mark Lord
Date: Tue Oct 12 2004 - 14:26:27 EST


>Storage drivers that want to handle long-running events,
>or events that need process context, typically want to
>either fire off events _asynchronously_ via schedule_work(),
>or have a long-running thread that does nothing but processes
>an internal driver event queue.

At driver module unload time, is there any way to guarantee
that all pending "schedule_work()" events have been processed?

How?

Thanks
--
Mark Lord
(hdparm keeper & the original "Linux IDE Guy")
-
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/