original_kernel/drivers/uwb
Thomas Pugliese 1fc671b3be uwb: move mutex_lock to error case in uwbd_evt_handle_rc_bp_slot_change
Only acquire rc->uwb_dev.mutex in the error case in
uwbd_evt_handle_rc_bp_slot_change.  This fixes a bug where establishing
a reservation on a new channel will fail if we were unable to establish
a reservation on the previous channel due to DRP conflict.

If rc->uwb_dev.mutex is acquired in the non-error case when the uwb
system is attempting to start beaconing, it will block because the start
beaconing code is holding this mutex.  This prevents any other
notifications from the URC from being processed.  In particular, the
DRP_AVAILABILITY notification will not be processed during the start
beaconing process which can result in a failure to establish a
reservation.  It is safe to not hold the mutex in the non-error
case since the only other place rc->uwb_dev.beacon_slot is accessed is
in the same worker thread that uwbd_evt_handle_rc_bp_slot_change
executes in.

Signed-off-by: Thomas Pugliese <thomas.pugliese@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-12-20 12:19:44 -08:00
..
i1480
Kconfig
Makefile
address.c
allocator.c
beacon.c uwb: move mutex_lock to error case in uwbd_evt_handle_rc_bp_slot_change 2013-12-20 12:19:44 -08:00
driver.c
drp-avail.c
drp-ie.c
drp.c
est.c
hwa-rc.c
ie-rcv.c
ie.c
lc-dev.c
lc-rc.c
neh.c
pal.c
radio.c uwb: whitespace and comment cleanups 2013-12-20 12:19:13 -08:00
reset.c
rsv.c uwb: use uwb_rsv_callback instead of calling rsv->callback directly 2013-12-20 12:19:13 -08:00
scan.c
umc-bus.c
umc-dev.c
umc-drv.c
uwb-debug.c
uwb-internal.h
uwbd.c
whc-rc.c
whci.c