summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorLatchesar Ionkov <lucho@ionkov.net>2006-06-28 13:26:50 +0200
committerLinus Torvalds <torvalds@g5.osdl.org>2006-06-28 23:59:05 +0200
commit94374e7cc369b972855cebd13ba942f4eb1be1ac (patch)
tree9f599bd59ccf7f1b5b0e7292940687a73d153998 /fs
parent[PATCH] remove active field from tty buffer structure (diff)
downloadlinux-94374e7cc369b972855cebd13ba942f4eb1be1ac.tar.xz
linux-94374e7cc369b972855cebd13ba942f4eb1be1ac.zip
[PATCH] v9fs: return the correct error when interrupted by signal
If a signal interrupts the user process, v9fs sends a flush request to the file server and waits for its response. It error code is incorrectly set to the error code of the flush message instead of ERESTARTSYS. The patch sets the error code to the correct value. Signed-off-by: Latchesar Ionkov <lucho@ionkov.net> Cc: Eric Van Hensbergen <ericvh@ericvh.myip.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs')
-rw-r--r--fs/9p/mux.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/9p/mux.c b/fs/9p/mux.c
index 12e1baa4508d..8d45ed668837 100644
--- a/fs/9p/mux.c
+++ b/fs/9p/mux.c
@@ -932,6 +932,8 @@ v9fs_mux_rpc(struct v9fs_mux_data *m, struct v9fs_fcall *tc,
r.rcall || r.err);
} while (!r.rcall && !r.err && err==-ERESTARTSYS &&
m->trans->status==Connected && !m->err);
+
+ err = -ERESTARTSYS;
}
sigpending = 1;
}