HID: fix tty<->hid deadlock
commitd92870ddd248e8c2562a8c4047885d3ad221ece7
authorJiri Slaby <jirislaby@gmail.com>
Mon, 8 Sep 2008 23:23:03 +0000 (9 01:23 +0200)
committerJiri Kosina <jkosina@suse.cz>
Tue, 14 Oct 2008 21:50:59 +0000 (14 23:50 +0200)
tree27dc3359f8ed8beff068eda6feae205f0d136a79
parentd1d3a5f6eaee337d793ab9ac28e696f0262c3c8a
HID: fix tty<->hid deadlock

hid_compat_load() runs on the default workqueue, it request_module(), it
execs modprobe, it exits, tty flushes default workqueue, it hangs, because
we are still in it.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Tested-by: <Valdis.Kletnieks@vt.edu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-core.c