Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp223252pxb; Wed, 8 Sep 2021 22:40:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzlrZZ9p1fr2+0vGearkIuxlXFE0tZzFnGgaNafg72gJOk1mmsLmh/P/WxJqsHOfA+EhqJu X-Received: by 2002:aa7:da93:: with SMTP id q19mr1401008eds.206.1631166002616; Wed, 08 Sep 2021 22:40:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631166002; cv=none; d=google.com; s=arc-20160816; b=Cn+h5UOxC2heCR56Olhc55MRZKjCSUDY43Idgywf8/TbaWRlfWYHfC7EFnC0vGj/xX jGhMP48QY5UykYqbTSrwyagT7xF7zbK3HajY1WtyJVWy8imSKNLZi8vlI7qX/pF7z141 6AAWNlhC/B700PUz2CLcuvlkgLk2sPdFfFYRTExHfurvdQ4k1P5x455LuTtAvPZbewY7 CYsxRd0Z+0TxrPm4lAWbJtNLKaujFf447aBf2NdCVEKhgtNQIdD6p9h7L2AYGUQg+Ljn jGkdqBA2A1yC9qiaW0zTaF3X1AxITfVy/bVY2tsejUhLK3bJUsiixAkOHmxULc7s/aCy ND5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter; bh=DgQXEsYLYwB5kRXEn217ARkxV0Yono9qI9u8Z8JlDp8=; b=b30HxYlcEoguqCdvRHZqlNQZEBQfsOnnZnIEa11Z3XCPNqKBfsyu5x0EFGxdZhlMJx W1TZ7SO1pfap4KRNSIKklIrjh+y5jeaxZ0sAZyTsSpJ907i7hSSSKuRklsXLaxxkLnCM codQleyglJf/QfUrPrTU23VB/dQKXLpwBSzG2/Xvkfl8XdvWPHhhCpu5PTxrBNB/hSTV k7HoiOSMHkEbccPVwfnlhXp/cbf/g1DfSokvPgPZogzUAGr0qeZubno6yLrBzeKj3DO9 MdXTPzlQC4EwMnjVsurKErMHPaG24HpVPo7xtqPl0awJa4aMv51f13P5sGMKbp+F+uoj 8WCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=HkysfVKk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l24si623508edw.288.2021.09.08.22.39.37; Wed, 08 Sep 2021 22:40:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=HkysfVKk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350820AbhIIFiS (ORCPT + 99 others); Thu, 9 Sep 2021 01:38:18 -0400 Received: from linux.microsoft.com ([13.77.154.182]:38112 "EHLO linux.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350776AbhIIFiO (ORCPT ); Thu, 9 Sep 2021 01:38:14 -0400 Received: from localhost.localdomain (unknown [171.61.210.53]) by linux.microsoft.com (Postfix) with ESMTPSA id 1E90A20B6C51; Wed, 8 Sep 2021 22:37:03 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 1E90A20B6C51 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1631165825; bh=DgQXEsYLYwB5kRXEn217ARkxV0Yono9qI9u8Z8JlDp8=; h=From:To:Cc:Subject:Date:From; b=HkysfVKkXpHnxKBTmVjRD2DKcuGhQLIkIn6l1BXBZtYNMAqm/uWrOSWJhfjxiOS6e no4QHsBU43vyF5FyqFNyKeRKO85iT+2JhRJKjoEaK8w39RikoHcRK46llottKqO0Y9 YQU/9Vro5RjNyv1wsyjaIRi6jQOdou44bmfyxkbE= From: Praveen Kumar To: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Cc: axboe@kernel.dk Subject: [PATCH] blk-mq: export blk_mq_submit_bio symbol Date: Thu, 9 Sep 2021 11:06:53 +0530 Message-Id: <20210909053653.144360-1-kumarpraveen@linux.microsoft.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There are use-cases like replication where need to hook the blk I/O operations for devices and perform specific operation and fallback to its original I/O operations. Prior to v5.9 there was make_request_fn and then blk_mq_submit_bio exported apis, which provided infrastructure to drivers to develop these features. However in v5.10-rc1 with below commit the API was removed from the export list. Previous commit: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?h=v5.10-rc1&id=681cc5e8667e8579a2da8fa4090c48a2d73fc3bb This patch exports the blk_mq_submit_bio symbol to provide flexibility to the drivers. Signed-off-by: Praveen Kumar --- block/blk-mq.c | 1 + 1 file changed, 1 insertion(+) diff --git a/block/blk-mq.c b/block/blk-mq.c index 65d3a63aecc6..40a9b085f029 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -2283,6 +2283,7 @@ blk_qc_t blk_mq_submit_bio(struct bio *bio) blk_queue_exit(q); return BLK_QC_T_NONE; } +EXPORT_SYMBOL_GPL(blk_mq_submit_bio); static size_t order_to_size(unsigned int order) { -- 2.25.1