At Wed, 31 Jan 2007 12:26:25 +0000, Liam Girdwood wrote: > > This patch fixes a bug whereby the power management delayed work would > never be run at driver suspend() or module remove(). Delayed work would > be created (after audio had finished) with a long delay (~5 secs) and > was sometimes never queued before flush_scheduled_work() was being > called at suspend or module remove. This caused the delayed work to > queued after the module had been removed or after resume. > > This patch forces any delayed work to complete by cancelling it (timer > cannot fire and add it to queue later), scheduling it for now and > waiting on it's completion. > > This is something I probably would like to add to workqueue.c in the > next merge window, however it's here atm because it can oops. > > Signed-off-by: Liam Girdwood <lg@xxxxxxxxxxxxxxxxxxxxxxxxxxx> Applied. I guess we need to fix a similar (flush_delayed_work) in ac97 codec code, too. thanks, Takashi ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Alsa-devel mailing list Alsa-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/alsa-devel