Skip to content

Commit eb403a1

Browse files
author
Gustavo F. Padovan
committed
Bluetooth: Remove sk_backlog usage from L2CAP
We run everything in the same lock now. The backlog queue is useless now Acked-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
1 parent aa2ac88 commit eb403a1

1 file changed

Lines changed: 1 addition & 11 deletions

File tree

‎net/bluetooth/l2cap_core.c‎

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1960,8 +1960,6 @@ static void l2cap_ack_timeout(struct work_struct *work)
19601960

19611961
static inline void l2cap_ertm_init(struct l2cap_chan *chan)
19621962
{
1963-
struct sock *sk = chan->sk;
1964-
19651963
chan->expected_ack_seq = 0;
19661964
chan->unacked_frames = 0;
19671965
chan->buffer_seq = 0;
@@ -1975,9 +1973,6 @@ static inline void l2cap_ertm_init(struct l2cap_chan *chan)
19751973
skb_queue_head_init(&chan->srej_q);
19761974

19771975
INIT_LIST_HEAD(&chan->srej_l);
1978-
1979-
1980-
sk->sk_backlog_rcv = l2cap_ertm_data_rcv;
19811976
}
19821977

19831978
static inline __u8 l2cap_select_mode(__u8 mode, __u16 remote_feat_mask)
@@ -4203,12 +4198,7 @@ static inline int l2cap_data_channel(struct l2cap_conn *conn, u16 cid, struct sk
42034198
break;
42044199

42054200
case L2CAP_MODE_ERTM:
4206-
if (!sock_owned_by_user(sk)) {
4207-
l2cap_ertm_data_rcv(sk, skb);
4208-
} else {
4209-
if (sk_add_backlog(sk, skb))
4210-
goto drop;
4211-
}
4201+
l2cap_ertm_data_rcv(sk, skb);
42124202

42134203
goto done;
42144204

0 commit comments

Comments
 (0)