diff options
author | Latchesar Ionkov <lucho@ionkov.net> | 2009-04-05 16:28:59 -0500 |
---|---|---|
committer | Eric Van Hensbergen <ericvh@vTrogdor.(none)> | 2009-04-05 16:54:53 -0500 |
commit | 1bab88b2310998de18b32529a27ea835d164254a (patch) | |
tree | fed704a8b3b4ce93d8cd25462ccc9186dec84b7a /net/9p/trans_virtio.c | |
parent | 742b11a7ec60faa25d76c95c268041ab215c25ad (diff) | |
download | op-kernel-dev-1bab88b2310998de18b32529a27ea835d164254a.zip op-kernel-dev-1bab88b2310998de18b32529a27ea835d164254a.tar.gz |
net/9p: handle correctly interrupted 9P requests
Currently the 9p code crashes when a operation is interrupted, i.e. for
example when the user presses ^C while reading from a file.
This patch fixes the code that is responsible for interruption and flushing
of 9P operations.
Signed-off-by: Latchesar Ionkov <lucho@ionkov.net>
Diffstat (limited to 'net/9p/trans_virtio.c')
-rw-r--r-- | net/9p/trans_virtio.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/9p/trans_virtio.c b/net/9p/trans_virtio.c index 2d7781e..bb8579a 100644 --- a/net/9p/trans_virtio.c +++ b/net/9p/trans_virtio.c @@ -134,6 +134,7 @@ static void req_done(struct virtqueue *vq) P9_DPRINTK(P9_DEBUG_TRANS, ": rc %p\n", rc); P9_DPRINTK(P9_DEBUG_TRANS, ": lookup tag %d\n", rc->tag); req = p9_tag_lookup(chan->client, rc->tag); + req->status = REQ_STATUS_RCVD; p9_client_cb(chan->client, req); } } |