From: Latchesar Ionkov <lucho@ionkov.net>
To: akpm@osdl.org
Cc: linux-kernel@vger.kernel.org, v9fs-developer@lists.sourceforge.net
Subject: [PATCH] v9fs: return the correct error when interrupted by signal
Date: Mon, 26 Jun 2006 22:18:56 -0600 [thread overview]
Message-ID: <20060627041856.GA17321@ionkov.net> (raw)
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>
---
commit c675b970b2befed791fa29f606852e205a009e62
tree 01b2f255baa2245d10e01756e981368a39401669
parent fcc18e83e1f6fd9fa6b333735bf0fcd530655511
author Latchesar Ionkov <lucho@ionkov.net> Mon, 26 Jun 2006 11:06:02 -0600
committer Latchesar Ionkov <lucho@ionkov.net> Mon, 26 Jun 2006 11:06:02 -0600
fs/9p/mux.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/fs/9p/mux.c b/fs/9p/mux.c
index f4407eb..210d2c0 100644
--- a/fs/9p/mux.c
+++ b/fs/9p/mux.c
@@ -932,6 +932,8 @@ v9fs_mux_rpc(struct v9fs_mux_data *m, st
r.rcall || r.err);
} while (!r.rcall && !r.err && err==-ERESTARTSYS &&
m->trans->status==Connected && !m->err);
+
+ err = -ERESTARTSYS;
}
sigpending = 1;
}
reply other threads:[~2006-06-27 2:07 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060627041856.GA17321@ionkov.net \
--to=lucho@ionkov.net \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=v9fs-developer@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox