diff options
author | Gustavo F. Padovan <padovan@profusion.mobi> | 2011-12-27 12:28:48 -0500 |
---|---|---|
committer | Gustavo F. Padovan <padovan@profusion.mobi> | 2012-01-02 19:20:24 -0500 |
commit | 94f5bfb8c1641080c3c4325714b8fe7d2839a906 (patch) | |
tree | b066a446b5585e5ac1a208d908ed7963e4895db6 /net/bluetooth/af_bluetooth.c | |
parent | 4b5dd696f81b210c1511ca7a969525126266c933 (diff) |
Bluetooth: Remove *_bh from socket list lock.
We don't need it anymore.
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'net/bluetooth/af_bluetooth.c')
-rw-r--r-- | net/bluetooth/af_bluetooth.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/bluetooth/af_bluetooth.c b/net/bluetooth/af_bluetooth.c index cdcfcabb34ab..ef92864ac625 100644 --- a/net/bluetooth/af_bluetooth.c +++ b/net/bluetooth/af_bluetooth.c | |||
@@ -156,17 +156,17 @@ static int bt_sock_create(struct net *net, struct socket *sock, int proto, | |||
156 | 156 | ||
157 | void bt_sock_link(struct bt_sock_list *l, struct sock *sk) | 157 | void bt_sock_link(struct bt_sock_list *l, struct sock *sk) |
158 | { | 158 | { |
159 | write_lock_bh(&l->lock); | 159 | write_lock(&l->lock); |
160 | sk_add_node(sk, &l->head); | 160 | sk_add_node(sk, &l->head); |
161 | write_unlock_bh(&l->lock); | 161 | write_unlock(&l->lock); |
162 | } | 162 | } |
163 | EXPORT_SYMBOL(bt_sock_link); | 163 | EXPORT_SYMBOL(bt_sock_link); |
164 | 164 | ||
165 | void bt_sock_unlink(struct bt_sock_list *l, struct sock *sk) | 165 | void bt_sock_unlink(struct bt_sock_list *l, struct sock *sk) |
166 | { | 166 | { |
167 | write_lock_bh(&l->lock); | 167 | write_lock(&l->lock); |
168 | sk_del_node_init(sk); | 168 | sk_del_node_init(sk); |
169 | write_unlock_bh(&l->lock); | 169 | write_unlock(&l->lock); |
170 | } | 170 | } |
171 | EXPORT_SYMBOL(bt_sock_unlink); | 171 | EXPORT_SYMBOL(bt_sock_unlink); |
172 | 172 | ||