]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: pcm - Avoid GFP_ATOMIC in snd_pcm_link()
authorTakashi Iwai <tiwai@suse.de>
Tue, 13 Mar 2012 14:55:43 +0000 (15:55 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 15 Mar 2012 06:36:00 +0000 (07:36 +0100)
commit5d4a15c27ac68eb8005c7b70e855f8d12069006e
treefdb4c9be9d073cb057af0571449c984730d8f75f
parent9bfe67346607499512816ba0def8aec0fb4320bd
ALSA: pcm - Avoid GFP_ATOMIC in snd_pcm_link()

GFP_ATOMIC is used in snd_pcm_link() just because the kmalloc is
called inside a lock.  Since this function isn't too critical for
speed and is rarely called in practice, better to allocate the chunk
at first before spinlock and free it in error paths, so that
GFP_KERNEL can be used.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm_native.c