Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 263522
b: refs/heads/master
c: 38d5755
h: refs/heads/master
v: v3
  • Loading branch information
Peter Hurley authored and Gustavo F. Padovan committed Aug 11, 2011
1 parent a7065a1 commit 296c7f7
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 552b0d3cb9ff648aa503011ef50ca24019cd0f5f
refs/heads/master: 38d57555616afcdad7381b02b523d494327494cd
6 changes: 4 additions & 2 deletions trunk/net/bluetooth/bnep/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -484,9 +484,11 @@ static int bnep_session(void *arg)

init_waitqueue_entry(&wait, current);
add_wait_queue(sk_sleep(sk), &wait);
while (!kthread_should_stop()) {
while (1) {
set_current_state(TASK_INTERRUPTIBLE);

if (kthread_should_stop())
break;
/* RX */
while ((skb = skb_dequeue(&sk->sk_receive_queue))) {
skb_orphan(skb);
Expand All @@ -504,7 +506,7 @@ static int bnep_session(void *arg)

schedule();
}
set_current_state(TASK_RUNNING);
__set_current_state(TASK_RUNNING);
remove_wait_queue(sk_sleep(sk), &wait);

/* Cleanup session */
Expand Down

0 comments on commit 296c7f7

Please sign in to comment.