From: Latchesar Ionkov Date: Wed, 28 Jun 2006 11:26:50 +0000 (-0700) Subject: [PATCH] v9fs: return the correct error when interrupted by signal X-Git-Tag: v2.6.18-rc1~447 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=94374e7cc369b972855cebd13ba942f4eb1be1ac;p=linux-2.6-omap-h63xx.git [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 Cc: Eric Van Hensbergen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/9p/mux.c b/fs/9p/mux.c index 12e1baa4508..8d45ed66883 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; }