]> git.karo-electronics.de Git - karo-tx-linux.git/commit
BLUETOOTH: Add conn add/del workqueues to avoid connection fail.
authorDave Young <hidave.darkstar@gmail.com>
Fri, 15 Feb 2008 09:34:03 +0000 (01:34 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 26 Feb 2008 00:18:43 +0000 (16:18 -0800)
commit47b66fe95afa8400cefaea06263ab8948d8465ba
tree8bc5dbc512ece19d6b9559c97b9b5e71cafe50fa
parent8f08540f032d07a7fb8f7576140ca426c55396f3
BLUETOOTH: Add conn add/del workqueues to avoid connection fail.

Upstream commit: b6c0632105f7d7548f1d642ba830088478d4f2b0

The bluetooth hci_conn sysfs add/del executed in the default
workqueue.  If the del_conn is executed after the new add_conn with
same target, add_conn will failed with warning of "same kobject name".

Here add btaddconn & btdelconn workqueues, flush the btdelconn
workqueue in the add_conn function to avoid the issue.

Signed-off-by: Dave Young <hidave.darkstar@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/bluetooth/hci_sysfs.c