Bluetooth: Use GFP_KERNEL in read_index_list
Hello Szymon Janc,
The patch 7cfeb868eb85: "Bluetooth: Use GFP_KERNEL in read_index_list" from Aug 31, 2012, leads to the following warning:net/bluetooth/mgmt.c:343 read_index_list()
error: scheduling with locks held: 'read_lock:hci_dev_list_lock'
This patch should be reverted because we're not allowed to schedule while holding the read lock. The way to avoid these bugs in the future is to test with CONFIG_DEBUG_ATOMIC_SLEEP=y. It will give a big splat.
regards,
dan carpenter
Hi Dan,
Quoted 10 lines · Dan Carpenter
Hello Szymon Janc,
The patch
7cfeb868eb85: "Bluetooth: UseGFP_KERNELinread_index_list" from Aug 31, 2012, leads to the following warning:net/bluetooth/mgmt.c:343read_index_list()
error: scheduling with locks held: 'read_lock:hci_dev_list_lock'This patch should be reverted because we're not allowed to schedule while holding the read lock. The way to avoid these bugs in the future is to test with
CONFIG_DEBUG_ATOMIC_SLEEP=y. It will give a big splat.
I reverted this patch earlier this morning. It should be ok now.
Gustavo