Skip to content

Commit

Permalink
fuse: export fuse_send_init_request()
Browse files Browse the repository at this point in the history
This will be used by virtio-fs to send init request to fuse server after
initialization of virt queues.

Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
  • Loading branch information
Vivek Goyal authored and Miklos Szeredi committed Sep 12, 2019
1 parent 14d46d7 commit 95a84cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions fs/fuse/fuse_i.h
Original file line number Diff line number Diff line change
Expand Up @@ -867,6 +867,7 @@ void fuse_conn_put(struct fuse_conn *fc);

struct fuse_dev *fuse_dev_alloc(struct fuse_conn *fc);
void fuse_dev_free(struct fuse_dev *fud);
void fuse_send_init(struct fuse_conn *fc);

/**
* Add connection to control filesystem
Expand Down
3 changes: 2 additions & 1 deletion fs/fuse/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -972,7 +972,7 @@ static void process_init_reply(struct fuse_conn *fc, struct fuse_args *args,
wake_up_all(&fc->blocked_waitq);
}

static void fuse_send_init(struct fuse_conn *fc)
void fuse_send_init(struct fuse_conn *fc)
{
struct fuse_init_args *ia;

Expand Down Expand Up @@ -1009,6 +1009,7 @@ static void fuse_send_init(struct fuse_conn *fc)
if (fuse_simple_background(fc, &ia->args, GFP_KERNEL) != 0)
process_init_reply(fc, &ia->args, -ENOTCONN);
}
EXPORT_SYMBOL_GPL(fuse_send_init);

static void fuse_free_conn(struct fuse_conn *fc)
{
Expand Down

0 comments on commit 95a84cd

Please sign in to comment.