From patchwork Fri Jun 16 05:56:44 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Smart X-Patchwork-Id: 9790581 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 00A1360231 for ; Fri, 16 Jun 2017 05:57:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E391B2861F for ; Fri, 16 Jun 2017 05:57:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D867C28641; Fri, 16 Jun 2017 05:57:10 +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.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, 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 937C72861F for ; Fri, 16 Jun 2017 05:57:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752094AbdFPF5K (ORCPT ); Fri, 16 Jun 2017 01:57:10 -0400 Received: from mail-qt0-f193.google.com ([209.85.216.193]:36029 "EHLO mail-qt0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752068AbdFPF5J (ORCPT ); Fri, 16 Jun 2017 01:57:09 -0400 Received: by mail-qt0-f193.google.com with SMTP id s33so7932726qtg.3 for ; Thu, 15 Jun 2017 22:57:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=gnsaAaStu6cHvlXCu4vvXikgId6GmE68em8QfhXRFRI=; b=j+4P5ysvpkfl+PEBYzt65m42v6vcocvSX3jstYe3xMUxqfqVYWpPs8HUVqCd40UZF2 kEkGudSoDcI5DMZyNr7VJrkZsZ1SqjrNGRROyX0tmWFgRcR5ZJ+zmoRBhWkOfkI4Dd01 nOft+lueYRKL1hllknBzIL81yX8TfowBX91XSySOoW+yHup9E5naFo1EpVxU3S1v2WAE NPyBc9yFBwlMTLSmrz0xeKo/INJ0qF0DOvZlkwulrujXZRL2eiKdB8+2RYQ1d+X5LHyG 2Ma1wye4jc1XkI1HbneYEV+38LwlAwothAOASeMZY3NIIi4J1LVnLkiVz9j+GwQ0aq83 QJlg== 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; bh=gnsaAaStu6cHvlXCu4vvXikgId6GmE68em8QfhXRFRI=; b=ZW2LfVMfk/xp2VH33gBJ8zFZR1euZYHk4grXQHVhiGFFs30OKRAoNZa1VOV4+dWwcA qTedIYeEumxyv1LDzzVjyL4Wly7Al+xRCTsMDGCN/bI3TSyqfJZkpVKZ5v3C4iA+YbKw z4AJ2QIY6682CR3QOSwCn+uUHAtRSJ2gV2ky+MeuqBxpn8w5ew3FYSalA3DP326Vjm1z xvuRfNcxAPhvaj8C2D2ZKCerp+tCuoVnE5hmcv2oif5gmYARbveO+pQPpoV1hJDJrTKq PreFeoiRXFpu/PojgkaHg1fdsKAJFsU7xh1psX4bHzKy3kLIRIafhG9haXbZyeP2rbKQ 4t3A== X-Gm-Message-State: AKS2vOwN80XdfkTWSLW44Brewhverrv67qwbkNYDr93jk+n7RqPwu8pr 1huHUeZsUbQi3jTB X-Received: by 10.55.77.141 with SMTP id a135mr10165854qkb.251.1497592628323; Thu, 15 Jun 2017 22:57:08 -0700 (PDT) Received: from localhost.localdomain ([192.19.218.250]) by smtp.gmail.com with ESMTPSA id d16sm925428qke.5.2017.06.15.22.57.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Jun 2017 22:57:07 -0700 (PDT) From: James Smart To: linux-scsi@vger.kernel.org Cc: James Smart , Dick Kennedy , James Smart Subject: [PATCH 04/11] Reduce time spent in IRQ for received NVME commands Date: Thu, 15 Jun 2017 22:56:44 -0700 Message-Id: <20170616055651.9674-5-jsmart2021@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170616055651.9674-1-jsmart2021@gmail.com> References: <20170616055651.9674-1-jsmart2021@gmail.com> Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Removed unnecessary bzero of context area. Due to size of sg list, added a substantial delay and played havoc on cpu caches. Signed-off-by: Dick Kennedy Signed-off-by: James Smart Reviewed-by: Hannes Reinecke --- drivers/scsi/lpfc/lpfc_nvmet.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/scsi/lpfc/lpfc_nvmet.c b/drivers/scsi/lpfc/lpfc_nvmet.c index dba1bd216be3..431faa0a4f3e 100644 --- a/drivers/scsi/lpfc/lpfc_nvmet.c +++ b/drivers/scsi/lpfc/lpfc_nvmet.c @@ -205,7 +205,6 @@ lpfc_nvmet_ctxbuf_post(struct lpfc_hba *phba, struct lpfc_nvmet_ctxbuf *ctx_buf) sid = sli4_sid_from_fc_hdr(fc_hdr); ctxp = (struct lpfc_nvmet_rcv_ctx *)ctx_buf->context; - memset(ctxp, 0, sizeof(ctxp->ctx)); ctxp->wqeq = NULL; ctxp->txrdy = NULL; ctxp->offset = 0; @@ -1422,7 +1421,6 @@ lpfc_nvmet_unsol_fcp_buffer(struct lpfc_hba *phba, "6414 NVMET Context corrupt %d %d oxid x%x\n", ctxp->state, ctxp->entry_cnt, ctxp->oxid); } - memset(ctxp, 0, sizeof(ctxp->ctx)); ctxp->wqeq = NULL; ctxp->txrdy = NULL; ctxp->offset = 0;