Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 110011
b: refs/heads/master
c: ec3c68f
h: refs/heads/master
i:
  110009: 2e4d3da
  110007: 0d33948
v: v3
  • Loading branch information
Tejun Heo authored and Eric Van Hensbergen committed Sep 24, 2008
1 parent 4eb61d4 commit 3ea9cf8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 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: 571ffeafffbfdd0b8f2f9d3b991028797ec87e42
refs/heads/master: ec3c68f232f6d98b4596c05c1c7551b44c617c5f
14 changes: 3 additions & 11 deletions trunk/net/9p/trans_fd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1344,7 +1344,6 @@ p9_fd_poll(struct p9_trans *trans, struct poll_table_struct *pt)
{
int ret, n;
struct p9_trans_fd *ts = NULL;
mm_segment_t oldfs;

if (trans && trans->status == Connected)
ts = trans->priv;
Expand All @@ -1358,24 +1357,17 @@ p9_fd_poll(struct p9_trans *trans, struct poll_table_struct *pt)
if (!ts->wr->f_op || !ts->wr->f_op->poll)
return -EIO;

oldfs = get_fs();
set_fs(get_ds());

ret = ts->rd->f_op->poll(ts->rd, pt);
if (ret < 0)
goto end;
return ret;

if (ts->rd != ts->wr) {
n = ts->wr->f_op->poll(ts->wr, pt);
if (n < 0) {
ret = n;
goto end;
}
if (n < 0)
return n;
ret = (ret & ~POLLOUT) | (n & ~POLLIN);
}

end:
set_fs(oldfs);
return ret;
}

Expand Down

0 comments on commit 3ea9cf8

Please sign in to comment.