From patchwork Tue Sep 3 11:41:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miklos Szeredi X-Patchwork-Id: 11127753 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1FDFD1395 for ; Tue, 3 Sep 2019 11:42:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 09C87217D7 for ; Tue, 3 Sep 2019 11:42:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729003AbfICLmH (ORCPT ); Tue, 3 Sep 2019 07:42:07 -0400 Received: from mx1.redhat.com ([209.132.183.28]:35528 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727077AbfICLmH (ORCPT ); Tue, 3 Sep 2019 07:42:07 -0400 Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 55C0E4E83E for ; Tue, 3 Sep 2019 11:42:06 +0000 (UTC) Received: by mail-wr1-f71.google.com with SMTP id e14so10249644wrd.23 for ; Tue, 03 Sep 2019 04:42:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Vn/jz2gcH9WzFmEVn9PNqatEbrLnybKVejt0ugjCIsw=; b=Tecpo5a0A551/icJVDd719D9gTEc1J5FBNYNkU0y8N7Sb6fJrhdxVM5l0JYZ+meiuy yqkAsrwl0wMGPHPsPu+6TPAm/n+qbD47nU/vhZD3SpttU0Zokm6e05ivhUhQ9Kf5k9Uh 0AHTfp5nMLYM3IQFzhNXmuffK9fEup+1FwyS565Clu8bWqu1EVNg4eeASCGPzHAwjO3F bVV0QfHLqNgkZ5Lj/wCJiiKK8F2ugf2cqi/L/ummDWc+YYuucKz31PaAZXxLOEo1m/qx CskF9gfG36H341qS8hyorOtY5gR9H7SjfyQzf8PvWKAcOnZUXLau/a+SM+sA7Gc0ZRoG Q3/Q== X-Gm-Message-State: APjAAAVtxVoTzvU4Z7e7q9b3bB268iDzJDKk2sjL0P743+yP90h9zosT qGEF5hIQ8nE6ENzPUiYTSiyyeL/61BIN2OlWY5fU2N6MD4No8T1nc2QlgppSUfeHmPTngNqcRRg 0FDkH5Ci2gWD4pgUAbgRZbl4quQ== X-Received: by 2002:adf:cd02:: with SMTP id w2mr24310187wrm.327.1567510925175; Tue, 03 Sep 2019 04:42:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqzYOxWV68FVlLb8fgvNxM4Wpgmp33Vrksyfgrwh2b6mFu7usl4RaqMBglgZaRcAZYU+InCz9w== X-Received: by 2002:adf:cd02:: with SMTP id w2mr24310173wrm.327.1567510925032; Tue, 03 Sep 2019 04:42:05 -0700 (PDT) Received: from miu.piliscsaba.redhat.com (catv-212-96-48-140.catv.broadband.hu. [212.96.48.140]) by smtp.gmail.com with ESMTPSA id x6sm2087551wmf.38.2019.09.03.04.42.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2019 04:42:04 -0700 (PDT) From: Miklos Szeredi To: virtualization@lists.linux-foundation.org, linux-fsdevel@vger.kernel.org Cc: Vivek Goyal , linux-kernel@vger.kernel.org, "Michael S. Tsirkin" , Stefan Hajnoczi , "Dr. David Alan Gilbert" Subject: [PATCH v4 06/16] fuse: export fuse_send_init_request() Date: Tue, 3 Sep 2019 13:41:53 +0200 Message-Id: <20190903114203.8278-1-mszeredi@redhat.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190903113640.7984-1-mszeredi@redhat.com> References: <20190903113640.7984-1-mszeredi@redhat.com> MIME-Version: 1.0 Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org From: Vivek Goyal This will be used by virtio-fs to send init request to fuse server after initialization of virt queues. Signed-off-by: Vivek Goyal Signed-off-by: Miklos Szeredi --- fs/fuse/dev.c | 1 + fs/fuse/fuse_i.h | 1 + fs/fuse/inode.c | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/fs/fuse/dev.c b/fs/fuse/dev.c index 985654560d1a..bd2e5958d2f9 100644 --- a/fs/fuse/dev.c +++ b/fs/fuse/dev.c @@ -139,6 +139,7 @@ void fuse_request_free(struct fuse_req *req) fuse_req_pages_free(req); kmem_cache_free(fuse_req_cachep, req); } +EXPORT_SYMBOL_GPL(fuse_request_free); void __fuse_get_request(struct fuse_req *req) { diff --git a/fs/fuse/fuse_i.h b/fs/fuse/fuse_i.h index 81e436c9620a..8ced5e74e5a8 100644 --- a/fs/fuse/fuse_i.h +++ b/fs/fuse/fuse_i.h @@ -994,6 +994,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, struct fuse_req *req); /** * Add connection to control filesystem diff --git a/fs/fuse/inode.c b/fs/fuse/inode.c index e3375ce8e97f..31cf0c47da13 100644 --- a/fs/fuse/inode.c +++ b/fs/fuse/inode.c @@ -962,7 +962,7 @@ static void process_init_reply(struct fuse_conn *fc, struct fuse_req *req) wake_up_all(&fc->blocked_waitq); } -static void fuse_send_init(struct fuse_conn *fc, struct fuse_req *req) +void fuse_send_init(struct fuse_conn *fc, struct fuse_req *req) { struct fuse_init_in *arg = &req->misc.init_in; @@ -992,6 +992,7 @@ static void fuse_send_init(struct fuse_conn *fc, struct fuse_req *req) req->end = process_init_reply; fuse_request_send_background(fc, req); } +EXPORT_SYMBOL_GPL(fuse_send_init); static void fuse_free_conn(struct fuse_conn *fc) {