From patchwork Thu Dec 13 06:38:12 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sagi Grimberg X-Patchwork-Id: 10728075 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8B3671751 for ; Thu, 13 Dec 2018 06:38:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7BB9D2A192 for ; Thu, 13 Dec 2018 06:38:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6FC4E2A669; Thu, 13 Dec 2018 06:38:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E15F62A192 for ; Thu, 13 Dec 2018 06:38:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726895AbeLMGiX (ORCPT ); Thu, 13 Dec 2018 01:38:23 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:35070 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726641AbeLMGiX (ORCPT ); Thu, 13 Dec 2018 01:38:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Message-Id:Date:Subject:Cc:To:From: Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=diLEn7pAwnEeRQA3FDyw5UjJv6hWCkT1Q235CCZWI8I=; b=iiHgvJu4baNH5K94B7VBEHWdk JPrnRbSo77gqGIZyYtKFadOPpLa+TqFWANC3+YNAzok6nvOHB8t7e516LcKnfgGATWRITKJs00vep rKrmOkvrjxS946W/+2XYWm2psNtiiPQEmgjD+HksoHTOJrFINk9jn3eVizSLvL135TsTLaFOu+4KG 9GCHf49TCMIED4h1vc+RWb0a2DoEMuDC99ZmcazvHXEnqv7HGClojm6fMgOv5r/Gu67djtznBq7fK 0eHv3bQIhYPVZRb9LsbBR0YAtbhQfblolrp8VTKorlmzORu6AKul4vo3hcrlhxM8u5cMUGEW/qlDG lty7KRrkQ==; Received: from [2601:647:4800:973f:7888:b13c:bff:87b0] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1gXKdY-0006LR-VR; Thu, 13 Dec 2018 06:38:21 +0000 From: Sagi Grimberg To: linux-nvme@lists.infradead.org Cc: linux-block@vger.kernel.org, linux-rdma@vger.kernel.org, Christoph Hellwig , Keith Busch , Jens Axboe Subject: [PATCH v2 0/6] restore nvme-rdma polling Date: Wed, 12 Dec 2018 22:38:12 -0800 Message-Id: <20181213063819.13614-1-sagi@grimberg.me> X-Mailer: git-send-email 2.17.1 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add an additional queue mapping for polling queues that will host polling for latency critical I/O. Allocate the poll queues with IB_POLL_DIRECT context. For nvmf connect we introduce a new blk_execute_rq_polled to poll for the completion and have nvmf_connect_io_queue use it for conneting polling queues. Finally, we turn off polling support for nvme-multipath as it won't invoke polling and our completion queues no longer generates any interrupts for it. I didn't come up with a good way to get around it so far... Changes from v1: - get rid of ib_change_cq_ctx - poll for nvmf connect over poll queues Sagi Grimberg (6): block: introduce blk_execute_rq_polled nvme-core: allow __nvme_submit_sync_cmd to poll nvme-fabrics: allow nvmf_connect_io_queue to poll nvme-fabrics: allow user to pass in nr_poll_queues nvme-rdma: implement polling queue map nvme-multipath: disable polling for underlying namespace request queue block/blk-exec.c | 29 +++++++++++++++++++ block/blk-mq.c | 8 ----- drivers/nvme/host/core.c | 15 ++++++---- drivers/nvme/host/fabrics.c | 25 ++++++++++++---- drivers/nvme/host/fabrics.h | 5 +++- drivers/nvme/host/fc.c | 2 +- drivers/nvme/host/nvme.h | 2 +- drivers/nvme/host/rdma.c | 58 +++++++++++++++++++++++++++++++++---- drivers/nvme/host/tcp.c | 2 +- drivers/nvme/target/loop.c | 2 +- include/linux/blk-mq.h | 8 +++++ include/linux/blkdev.h | 2 ++ 12 files changed, 128 insertions(+), 30 deletions(-)