Hi Andre, > This patch adds a RW lock to protect concurrent operations on > adv_entries list. > > Signed-off-by: Andre Guedes <andre.guedes@xxxxxxxxxxxxx> > --- > include/net/bluetooth/hci_core.h | 1 + > net/bluetooth/hci_core.c | 21 +++++++++++++++++---- > 2 files changed, 18 insertions(+), 4 deletions(-) > > diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h > index 65135f8..2ceeadf 100644 > --- a/include/net/bluetooth/hci_core.h > +++ b/include/net/bluetooth/hci_core.h > @@ -188,6 +188,7 @@ struct hci_dev { > struct list_head remote_oob_data; > > struct list_head adv_entries; > + rwlock_t adv_entries_lock; we might wanna consider just using spinlocks and not rwlocks. Also can you please look into using RCU. 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