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