Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 42817
b: refs/heads/master
c: f89d75f
h: refs/heads/master
i:
  42815: 5f72f0c
v: v3
  • Loading branch information
Peter Zijlstra authored and Linus Torvalds committed Dec 7, 2006
1 parent 28dcac6 commit 7da3e3d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9774a1f54f173ad18e816496c8979f1bf8ef666a
refs/heads/master: f89d75f224dc530f1c173d9093f75865345840a1
4 changes: 2 additions & 2 deletions trunk/drivers/bluetooth/hci_bcsp.c
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ static struct sk_buff *bcsp_dequeue(struct hci_uart *hu)
reliable packet if the number of packets sent but not yet ack'ed
is < than the winsize */

spin_lock_irqsave(&bcsp->unack.lock, flags);
spin_lock_irqsave_nested(&bcsp->unack.lock, flags, SINGLE_DEPTH_NESTING);

if (bcsp->unack.qlen < BCSP_TXWINSIZE && (skb = skb_dequeue(&bcsp->rel)) != NULL) {
struct sk_buff *nskb = bcsp_prepare_pkt(bcsp, skb->data, skb->len, bt_cb(skb)->pkt_type);
Expand Down Expand Up @@ -696,7 +696,7 @@ static void bcsp_timed_event(unsigned long arg)

BT_DBG("hu %p retransmitting %u pkts", hu, bcsp->unack.qlen);

spin_lock_irqsave(&bcsp->unack.lock, flags);
spin_lock_irqsave_nested(&bcsp->unack.lock, flags, SINGLE_DEPTH_NESTING);

while ((skb = __skb_dequeue_tail(&bcsp->unack)) != NULL) {
bcsp->msgq_txseq = (bcsp->msgq_txseq - 1) & 0x07;
Expand Down

0 comments on commit 7da3e3d

Please sign in to comment.