From patchwork Thu Mar 9 13:16:39 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sagi Grimberg X-Patchwork-Id: 9613347 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 42C30604D9 for ; Thu, 9 Mar 2017 13:20:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 37DBD28518 for ; Thu, 9 Mar 2017 13:20:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2CF872851A; Thu, 9 Mar 2017 13:20:26 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID 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 D84372860C for ; Thu, 9 Mar 2017 13:20:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754137AbdCINUZ (ORCPT ); Thu, 9 Mar 2017 08:20:25 -0500 Received: from bombadil.infradead.org ([65.50.211.133]:60957 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754750AbdCINUX (ORCPT ); Thu, 9 Mar 2017 08:20:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=References:In-Reply-To:Message-Id: Date:Subject:To:From:Sender:Reply-To:Cc:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=lpUvsLuV3BSDITthhGavTHVsD/0+wrIqVTQ1f52c9g0=; b=Nt7bGR9X4hcj72K0Enagc2vcW 2hHfTEVOPIq1FAk/EJ1aM9dvrUl+DZWQ1cZfqs7pqaKhpVMjJKqZYFW1wxpkeXpdiSMdYF2DG/I5e hVLouuTjvvEzT07BaHbPOJGiIeUZGxeqmF7wb5aZZh17uQQTgF3//okqoIIMndXNNDIoaa8x1uFiY x/+eqmMRjvWrf0+yW/0waiapNjYUb20oWcyO3ekPHvPVmFWDMywz00DML7wUI2I1NYfqLBnOphOpV LQk62oYUqooO/zMHe092WS9YyNh0JhfCOx4R7tKdYEYFZ/c/htkhi9M0dPAPi1vAN7pDpk6HKSjZ2 QHqK+xLAA==; Received: from bzq-82-81-101-184.red.bezeqint.net ([82.81.101.184] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.87 #1 (Red Hat Linux)) id 1clxwe-0001My-7B; Thu, 09 Mar 2017 13:17:29 +0000 From: Sagi Grimberg To: linux-block@vger.kernel.org, linux-nvme@lists.infradead.org, linux-rdma@vger.kernel.org, target-devel@vger.kernel.org Subject: [PATCH rfc 07/10] nvme-rdma: Don't rearm the CQ when polling directly Date: Thu, 9 Mar 2017 15:16:39 +0200 Message-Id: <1489065402-14757-8-git-send-email-sagi@grimberg.me> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1489065402-14757-1-git-send-email-sagi@grimberg.me> References: <1489065402-14757-1-git-send-email-sagi@grimberg.me> Sender: target-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: target-devel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP We don't need it as the core polling context will take are of rearming the completion queue. Signed-off-by: Sagi Grimberg --- drivers/nvme/host/rdma.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/nvme/host/rdma.c b/drivers/nvme/host/rdma.c index 7bad791a7fe9..a17eef3ef6ff 100644 --- a/drivers/nvme/host/rdma.c +++ b/drivers/nvme/host/rdma.c @@ -1474,7 +1474,6 @@ static int nvme_rdma_poll(struct blk_mq_hw_ctx *hctx, unsigned int tag) struct ib_wc wc; int found = 0; - ib_req_notify_cq(cq, IB_CQ_NEXT_COMP); while (ib_poll_cq(cq, 1, &wc) > 0) { struct ib_cqe *cqe = wc.wr_cqe;