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 <[email protected]>
This commit is contained in:
Latchesar Ionkov 2009-04-05 16:28:59 -05:00 • committed by Eric Van Hensbergen
commit 1bab88b231
5 changed files with 30 additions and 61 deletions

View file

@ -98,7 +98,6 @@ enum p9_req_status_t {
struct p9_req_t {
int status;
int t_err;
u16 flush_tag;
wait_queue_head_t *wq;
struct p9_fcall *tc;
struct p9_fcall *rc;