diff options
Diffstat (limited to 'fs/fuse/inode.c')
-rw-r--r-- | fs/fuse/inode.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/fuse/inode.c b/fs/fuse/inode.c index 8683e7254d53..c755a0440a66 100644 --- a/fs/fuse/inode.c +++ b/fs/fuse/inode.c | |||
@@ -397,6 +397,7 @@ static struct fuse_conn *new_conn(void) | |||
397 | init_rwsem(&fc->sbput_sem); | 397 | init_rwsem(&fc->sbput_sem); |
398 | kobj_set_kset_s(fc, connections_subsys); | 398 | kobj_set_kset_s(fc, connections_subsys); |
399 | kobject_init(&fc->kobj); | 399 | kobject_init(&fc->kobj); |
400 | atomic_set(&fc->num_waiting, 0); | ||
400 | for (i = 0; i < FUSE_MAX_OUTSTANDING; i++) { | 401 | for (i = 0; i < FUSE_MAX_OUTSTANDING; i++) { |
401 | struct fuse_req *req = fuse_request_alloc(); | 402 | struct fuse_req *req = fuse_request_alloc(); |
402 | if (!req) { | 403 | if (!req) { |
@@ -492,6 +493,7 @@ static void fuse_send_init(struct fuse_conn *fc) | |||
492 | to be exactly one request available */ | 493 | to be exactly one request available */ |
493 | struct fuse_req *req = fuse_get_request(fc); | 494 | struct fuse_req *req = fuse_get_request(fc); |
494 | struct fuse_init_in *arg = &req->misc.init_in; | 495 | struct fuse_init_in *arg = &req->misc.init_in; |
496 | |||
495 | arg->major = FUSE_KERNEL_VERSION; | 497 | arg->major = FUSE_KERNEL_VERSION; |
496 | arg->minor = FUSE_KERNEL_MINOR_VERSION; | 498 | arg->minor = FUSE_KERNEL_MINOR_VERSION; |
497 | req->in.h.opcode = FUSE_INIT; | 499 | req->in.h.opcode = FUSE_INIT; |