]> git.baikalelectronics.ru Git - kernel.git/commit
[BLUETOOTH]: Add conn add/del workqueues to avoid connection fail.
authorDave Young <hidave.darkstar@gmail.com>
Wed, 30 Jan 2008 05:14:08 +0000 (21:14 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Feb 2008 03:27:12 +0000 (19:27 -0800)
commitd3e8555247598f2e6b04c47366a2fb50b7b26930
tree63e06f0d8565e5704d3ebabfd1597ad995253434
parentaef6ec3ac77b16a614cad361cf2d7294a93093e0
[BLUETOOTH]: Add conn add/del workqueues to avoid connection fail.

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>
net/bluetooth/hci_sysfs.c