Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 263523
b: refs/heads/master
c: 3a3f5c7
h: refs/heads/master
i:
  263521: a7065a1
  263519: 7d0537d
v: v3
  • Loading branch information
Peter Hurley authored and Gustavo F. Padovan committed Aug 11, 2011
1 parent 296c7f7 commit 16df98e
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: 38d57555616afcdad7381b02b523d494327494cd
refs/heads/master: 3a3f5c7df55a1294c9e6e2d0b8cea604b137438f
6 changes: 4 additions & 2 deletions trunk/net/bluetooth/cmtp/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -292,9 +292,11 @@ static int cmtp_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;
if (sk->sk_state != BT_CONNECTED)
break;

Expand All @@ -307,7 +309,7 @@ static int cmtp_session(void *arg)

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

down_write(&cmtp_session_sem);
Expand Down

0 comments on commit 16df98e

Please sign in to comment.