[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>
This commit is contained in:

committed by
Linus Torvalds

parent
343f1fe6f2
commit
41e5a6ac80
@@ -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);
|
||||
|
Reference in New Issue
Block a user