fuse: add memory barrier to INIT

Theoretically we need to order setting of various fields in fc with
fc->initialized.

No known bug reports related to this yet.

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
This commit is contained in:
Miklos Szeredi
2015-01-06 10:45:35 +01:00
parent 21f621741a
commit 9759bd5189
3 changed files with 16 additions and 3 deletions

View File

@@ -897,7 +897,7 @@ static void process_init_reply(struct fuse_conn *fc, struct fuse_req *req)
fc->max_write = max_t(unsigned, 4096, fc->max_write);
fc->conn_init = 1;
}
fc->initialized = 1;
fuse_set_initialized(fc);
wake_up_all(&fc->blocked_waitq);
}