From: OGAWA Hirofumi Date: Fri, 31 Mar 2006 10:36:14 +0000 (+0200) Subject: [ALSA] sound/pci/hda: use create_singlethread_workqueue() X-Git-Tag: v2.6.17-rc1~6^2~3 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=ce7415f496e21775156b08452d22211f8c3ccc53;p=linux-2.6-omap-h63xx.git [ALSA] sound/pci/hda: use create_singlethread_workqueue() process_unsol_events() seems to assume a singlethread one (IOW, racey). So, this patch uses create_singlethread_workqueue() instead of create_workqueue(). Signed-off-by: OGAWA Hirofumi Signed-off-by: Takashi Iwai --- diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c index b42dff7ceed..5bee3b53647 100644 --- a/sound/pci/hda/hda_codec.c +++ b/sound/pci/hda/hda_codec.c @@ -295,7 +295,7 @@ static int init_unsol_queue(struct hda_bus *bus) snd_printk(KERN_ERR "hda_codec: can't allocate unsolicited queue\n"); return -ENOMEM; } - unsol->workq = create_workqueue("hda_codec"); + unsol->workq = create_singlethread_workqueue("hda_codec"); if (! unsol->workq) { snd_printk(KERN_ERR "hda_codec: can't create workqueue\n"); kfree(unsol);