Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BB4FBCA5509 for ; Wed, 13 Sep 2023 08:38:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=xSjnYJ6kacZY7UCZLdel3UJ+ItlAuPMrAohzlcPsg08=; b=y2wLG+DM97FUoizzjir0ADj1IT g+2fLJIFSHypOfPGiQ+A5nG6E6+71nFYXBKLeaVPubVQjgZqEbnrqgErpEo6/lN7JAi1yc5MFmVNs uVwV8TuzjXdhuTPnZeDTCmH6ltlxxnHVlQbXEdVv1zLM3BaUENpf8AZAZvJePt/eFtPQB01JXBebU 01/E61XC9WkRQwPVRgh2RHgpckYoNcAcftbI6/A3bf7rFHHELt1V6EFw+dMnUmxniZXRIdY6BkCfY GiZXwRb2de1kHZkSgpzCQESiWjtyAIxEZ6ctazIonhnbJdBjodrctjyJnIxwtTHj/2l98ymNJQiCw 36dFrg/g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qgLOH-00589y-11; Wed, 13 Sep 2023 08:38:29 +0000 Received: from m12.mail.163.com ([220.181.12.196]) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qgLOD-00588d-1R for linux-nvme@lists.infradead.org; Wed, 13 Sep 2023 08:38:27 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version; bh=xSjnY J6kacZY7UCZLdel3UJ+ItlAuPMrAohzlcPsg08=; b=nN0/1ciwC5+ql5OwJVjqt NcIgyaN9bbF4xXKoTKv3lkwd/hPf2gv5TPdpnTQrNTihVEmWhHYL6H+diWdpxISj JCXHzC6PorT580DmFL4+FyRZJv4rqV6k+MHWZTSg48IZHiYpvloeDSafLoW6DDHa UKLldEDtaiVciU3QLnuPXQ= Received: from localhost.localdomain (unknown [223.166.237.2]) by zwqz-smtp-mta-g1-1 (Coremail) with SMTP id _____wAnln7QdAFli8i+Bw--.56942S2; Wed, 13 Sep 2023 16:37:36 +0800 (CST) From: Ping Gan To: kbusch@kernel.org, axboe@kernel.dk, hch@lst.de, sagi@grimberg.me, kch@nvidia.com, linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org Cc: ping_gan@dell.com, jacky_gam_2001@163.com Subject: [PATCH 0/4] nvmet: support polling queue task for bio request Date: Wed, 13 Sep 2023 16:36:40 +0800 Message-Id: X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: _____wAnln7QdAFli8i+Bw--.56942S2 X-Coremail-Antispam: 1Uf129KBjvdXoW7GrWDWr45ur1xZrykKry8Xwb_yoWfKFX_Cr 10vr9rKFW8uF1DtFW7Cr1UXFZFka1Fvr92gFs0qr45Kr9rury5Jrn2vF9xAw4xAw48Zrn8 GryUGr4FkrWUWjkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7sRMVbyDUUUUU== X-Originating-IP: [223.166.237.2] X-CM-SenderInfo: 5mdfy55bjdzsisqqiqqrwthudrp/1tbiKBTpKV7WNCYiyAAAsM X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230913_013825_868902_D6800F10 X-CRM114-Status: UNSURE ( 8.68 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-nvme@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-nvme" Errors-To: linux-nvme-bounces+linux-nvme=archiver.kernel.org@lists.infradead.org Since nvme target currently does not support to submit bio to a polling queue, the bio's completion relies on system interrupt. But when there is high workload in system and the competition is very high, so it makes sense to add polling queue task to submit bio to disk's polling queue and poll the completion queue of disk. Ping Gan (4): nvmet: Add nvme target polling queue task parameters nvmet: Add polling queue task for nvme target nvmet: support bio polling queue request nvme-core: Get lowlevel disk for target polling queue task drivers/nvme/host/multipath.c | 20 + drivers/nvme/target/Makefile | 2 +- drivers/nvme/target/core.c | 55 +- drivers/nvme/target/io-cmd-bdev.c | 243 ++++++++- drivers/nvme/target/nvmet.h | 13 + drivers/nvme/target/polling-queue-thread.c | 594 +++++++++++++++++++++ 6 files changed, 895 insertions(+), 32 deletions(-) create mode 100644 drivers/nvme/target/polling-queue-thread.c -- 2.26.2