staging: usbip: use interrupt safe spinlock to avoid potential deadlock.
authorHarvey Yang <harvey.huawei.yang@gmail.com>
Tue, 22 Jan 2013 05:31:30 +0000 (13:31 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 Jan 2013 17:00:10 +0000 (09:00 -0800)
commitdcf14779280215d1765141ce04c675df3e4301c5
tree3924edec0e5a56e4c70fdc57403de3c4c6a7e88f
parent26ef1021c1c7ba62a2790296546945022468e17d
staging: usbip: use interrupt safe spinlock to avoid potential deadlock.

The function 'usbip_event_add()' may be called in interrupt context on
the stub side:
'stub_complete'->'stub_enqueue_ret_unlink'->'usbip_event_add'.
In this function it tries to get the lock 'ud->lock', so we should
disable irq when we get this lock in process context.

Signed-off-by: Harvey Yang <harvey.huawei.yang@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/usbip/stub_dev.c
drivers/staging/usbip/stub_rx.c
drivers/staging/usbip/usbip_event.c