Re: [PATCH] Bluetooth: Simplify request cleanup code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Johan,

> The hci_req_sync_cancel() is just as much related to the request
> cleanup as hci_request_cancel_all() is. Just move the former into the
> latter and do the cleanup from a single place in hci_dev_do_close().
> The important thing is to avoid deadlocks by holding the req_sync
> lock: previously hci_request_cancel_all was done right after releasing
> the lock and with this patch it's right before taking it.
> 
> Signed-off-by: Johan Hedberg <johan.hedberg@xxxxxxxxx>
> ---
> net/bluetooth/hci_core.c    | 4 +---
> net/bluetooth/hci_request.c | 2 ++
> 2 files changed, 3 insertions(+), 3 deletions(-)

patch has been applied to bluetooth-next tree.

Regards

Marcel

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux