Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 333411
b: refs/heads/master
c: 0462194
h: refs/heads/master
i:
  333409: 630d440
  333407: bd7ca22
v: v3
  • Loading branch information
Simon Derr authored and Eric Van Hensbergen committed Sep 17, 2012
1 parent 93a2af1 commit 6f4547c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 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: e549c1337133e85a6d6bc868d2d141a61a80975c
refs/heads/master: 0462194d358c2e040282d4d1a4fd1aab84417e42
14 changes: 7 additions & 7 deletions trunk/net/9p/trans_fd.c
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,7 @@ static void p9_read_work(struct work_struct *work)
m->rsize - m->rpos);
p9_debug(P9_DEBUG_TRANS, "mux %p got %d bytes\n", m, err);
if (err == -EAGAIN) {
clear_bit(Rworksched, &m->wsched);
return;
goto end_clear;
}

if (err <= 0)
Expand Down Expand Up @@ -379,19 +378,20 @@ static void p9_read_work(struct work_struct *work)
m->req = NULL;
}

end_clear:
clear_bit(Rworksched, &m->wsched);

if (!list_empty(&m->req_list)) {
if (test_and_clear_bit(Rpending, &m->wsched))
n = POLLIN;
else
n = p9_fd_poll(m->client, NULL);

if (n & POLLIN) {
if ((n & POLLIN) && !test_and_set_bit(Rworksched, &m->wsched)) {
p9_debug(P9_DEBUG_TRANS, "sched read work %p\n", m);
schedule_work(&m->rq);
} else
clear_bit(Rworksched, &m->wsched);
} else
clear_bit(Rworksched, &m->wsched);
}
}

return;
error:
Expand Down

0 comments on commit 6f4547c

Please sign in to comment.