Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 19650
b: refs/heads/master
c: 034b91a
h: refs/heads/master
v: v3
  • Loading branch information
Latchesar Ionkov authored and Linus Torvalds committed Feb 3, 2006
1 parent 484acda commit 7e35cf6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 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: 05818a004a84951fd383694f3b35d89eb49fa308
refs/heads/master: 034b91a3b66cf9d2983ac45f73162395c0936c36
15 changes: 11 additions & 4 deletions trunk/fs/9p/mux.c
Original file line number Diff line number Diff line change
Expand Up @@ -471,10 +471,13 @@ static void v9fs_write_work(void *a)
}

spin_lock(&m->lock);
req =
list_entry(m->unsent_req_list.next, struct v9fs_req,
again:
req = list_entry(m->unsent_req_list.next, struct v9fs_req,
req_list);
list_move_tail(&req->req_list, &m->req_list);
if (req->err == ERREQFLUSH)
goto again;

m->wbuf = req->tcall->sdata;
m->wsize = req->tcall->size;
m->wpos = 0;
Expand Down Expand Up @@ -525,7 +528,7 @@ static void process_request(struct v9fs_mux_data *m, struct v9fs_req *req)
struct v9fs_str *ename;

tag = req->tag;
if (req->rcall->id == RERROR && !req->err) {
if (!req->err && req->rcall->id == RERROR) {
ecode = req->rcall->params.rerror.errno;
ename = &req->rcall->params.rerror.error;

Expand All @@ -551,7 +554,10 @@ static void process_request(struct v9fs_mux_data *m, struct v9fs_req *req)
req->err = -EIO;
}

if (req->cb && req->err != ERREQFLUSH) {
if (req->err == ERREQFLUSH)
return;

if (req->cb) {
dprintk(DEBUG_MUX, "calling callback tcall %p rcall %p\n",
req->tcall, req->rcall);

Expand Down Expand Up @@ -812,6 +818,7 @@ v9fs_mux_rpc_cb(void *a, struct v9fs_fcall *tc, struct v9fs_fcall *rc, int err)
struct v9fs_mux_rpc *r;

if (err == ERREQFLUSH) {
kfree(rc);
dprintk(DEBUG_MUX, "err req flush\n");
return;
}
Expand Down

0 comments on commit 7e35cf6

Please sign in to comment.