]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
[media] dvb_usb_v2: replace Kernel userspace lock with wait queue
authorAntti Palosaari <crope@iki.fi>
Sat, 9 Mar 2013 03:16:32 +0000 (00:16 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 23 Mar 2013 12:58:49 +0000 (09:58 -0300)
commitbdecbe43e345d1e5a0fa82625d7beb7c3371763e
tree1873a84591bd4e2ed928495625155f0fa4955d06
parent028c70ff42783509d3a7c7fa0faf900446a2657a
[media] dvb_usb_v2: replace Kernel userspace lock with wait queue

There was sync mutex which was held over userspace. That is very
wrong and could cause deadlock if different userspace process is
used to "unlock". Wait queue seems to be correct solution for
that kind of synchronizing issue so use it instead.
lock debug gives following bug report:
================================================
[ BUG: lock held when returning to user space! ]
3.9.0-rc1+ #38 Tainted: G           O
------------------------------------------------
tzap/4614 is leaving the kernel with locks still held!
1 lock held by tzap/4614:

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/usb/dvb-usb-v2/dvb_usb.h
drivers/media/usb/dvb-usb-v2/dvb_usb_core.c