diff options
author | Latchesar Ionkov <lucho@ionkov.net> | 2006-05-15 09:44:21 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-05-15 11:20:56 -0700 |
commit | 41e5a6ac80c600e1f8bda0a4871f0b797e097d78 (patch) | |
tree | e2796bac0d285751d027eff931e31c0842669788 /fs/9p/mux.h | |
parent | 343f1fe6f2e3fb4912db241e639b0721c2e14f2e (diff) | |
download | op-kernel-dev-41e5a6ac80c600e1f8bda0a4871f0b797e097d78.zip op-kernel-dev-41e5a6ac80c600e1f8bda0a4871f0b797e097d78.tar.gz |
[PATCH] v9fs: signal handling fixes
Multiple races can happen when v9fs is interrupted by a signal and Tflush
message is sent to the server. After v9fs sends Tflush it doesn't wait
until it receives Rflush, and possibly the response of the original
message. This behavior may confuse v9fs what fids are allocated by the
file server.
This patch fixes the races and the fid allocation.
Signed-off-by: Latchesar Ionkov <lucho@ionkov.net>
Cc: Eric Van Hensbergen <ericvh@hera.kernel.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/9p/mux.h')
-rw-r--r-- | fs/9p/mux.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/9p/mux.h b/fs/9p/mux.h index e90bfd3..fb10c50 100644 --- a/fs/9p/mux.h +++ b/fs/9p/mux.h @@ -24,6 +24,7 @@ */ struct v9fs_mux_data; +struct v9fs_req; /** * v9fs_mux_req_callback - callback function that is called when the @@ -36,8 +37,7 @@ struct v9fs_mux_data; * @rc - response call * @err - error code (non-zero if error occured) */ -typedef void (*v9fs_mux_req_callback)(void *a, struct v9fs_fcall *tc, - struct v9fs_fcall *rc, int err); +typedef void (*v9fs_mux_req_callback)(struct v9fs_req *req, void *a); int v9fs_mux_global_init(void); void v9fs_mux_global_exit(void); |