]> git.baikalelectronics.ru Git - 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)
commit7abdfc2414634440dd7c3379ac95a75be2279eac
tree1873a84591bd4e2ed928495625155f0fa4955d06
parent9b558e9ca17abca3be0cdc0f1bfae3af30819893
[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