ALSA: seq-oss: Initialize MIDI clients asynchronously
authorTakashi Iwai <tiwai@suse.de>
Tue, 16 Jul 2013 10:17:49 +0000 (12:17 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 17 Jul 2013 07:19:24 +0000 (09:19 +0200)
commit256ca9c3ad5013ff8a8f165e5a82fab437628c8e
treeef8d82a3c1bc25891c544e8afd3277923597b315
parentd52392b1a80458c0510810789c7db4a39b88022a
ALSA: seq-oss: Initialize MIDI clients asynchronously

We've got bug reports that the module loading stuck on Debian system
with 3.10 kernel.  The debugging session revealed that the initial
registration of OSS sequencer clients stuck at module loading time,
which involves again with request_module() at the init phase.  This is
triggered only by special --install stuff Debian is using, but it's
still not good to have such loops.

As a workaround, call the registration part asynchronously.  This is a
better approach irrespective of the hang fix, in anyway.

Reported-and-tested-by: Philipp Matthias Hahn <pmhahn@pmhahn.de>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/seq/oss/seq_oss_init.c
sound/core/seq/oss/seq_oss_midi.c