]> err.no Git - linux-2.6/commitdiff
[ALSA] sound/pci/hda: use create_singlethread_workqueue()
authorOGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Fri, 31 Mar 2006 10:36:14 +0000 (12:36 +0200)
committerJaroslav Kysela <perex@suse.cz>
Fri, 31 Mar 2006 15:59:01 +0000 (17:59 +0200)
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 <hirofumi@mail.parknet.co.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_codec.c

index b42dff7ceed0334d68743782816f367d01247b2b..5bee3b5364783dd985f7bd1da94507a50ac284f9 100644 (file)
@@ -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);