[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 <hirofumi@mail.parknet.co.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

authored by OGAWA Hirofumi and committed by Jaroslav Kysela ce7415f4 89be83f8

+1 -1
+1 -1
sound/pci/hda/hda_codec.c
··· 295 295 snd_printk(KERN_ERR "hda_codec: can't allocate unsolicited queue\n"); 296 296 return -ENOMEM; 297 297 } 298 - unsol->workq = create_workqueue("hda_codec"); 298 + unsol->workq = create_singlethread_workqueue("hda_codec"); 299 299 if (! unsol->workq) { 300 300 snd_printk(KERN_ERR "hda_codec: can't create workqueue\n"); 301 301 kfree(unsol);