From patchwork Sat Sep 30 00:34:37 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Smart X-Patchwork-Id: 9978901 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 A70D46037F for ; Sat, 30 Sep 2017 00:35:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9A299298D1 for ; Sat, 30 Sep 2017 00:35:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8F00F298D5; Sat, 30 Sep 2017 00:35:29 +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.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM 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 21219298D1 for ; Sat, 30 Sep 2017 00:35:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752663AbdI3Af2 (ORCPT ); Fri, 29 Sep 2017 20:35:28 -0400 Received: from mail-qk0-f194.google.com ([209.85.220.194]:35186 "EHLO mail-qk0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752622AbdI3AfG (ORCPT ); Fri, 29 Sep 2017 20:35:06 -0400 Received: by mail-qk0-f194.google.com with SMTP id o77so782777qke.2 for ; Fri, 29 Sep 2017 17:35:06 -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=pClAT3m62NMZBzoKy7gd8PygtU2fp/XbdziZxdtvVXY=; b=XrDBpZQmdCfs7dQ2F6Wqi+HkO3jj6M+gZmif/+5l0dpTo9VvhVkfvRIoldMgao+BVz UsEVMZI8jy8txS0kffICrQDrmYYVIHNgMO+ENSSGM/oay6cblPc9glTLQMPVdwRp0dr1 t1ZXcvgq1+oraMhnwTI/xlTy+iGtamyATT/MLEP7jiVbZZZ958MB83fOALTmz65qGepQ 5/WrZl9CC4cEu0gCoCrj0f7PyQhNIqwvnhaQhXwKCILi+TW3JEDlYfEoDjuavWtQEN2L De49jR+evszgX+Dkuje4gKMPvOsnQRxkHlf8dDYox7XO4APTsEatyGAqwwUTOWCTVTu+ terg== 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=pClAT3m62NMZBzoKy7gd8PygtU2fp/XbdziZxdtvVXY=; b=kkUnoCiMVXu9RFDhh8XNFWcSudemk5HDaWRYiQuTdgolaIS+SsWjXQ+aENQO7QCi+i KzWBnegteu4cXQuo1Lsb9joKl8EBBbByyOKeVGFLpo3aGP3E93AFpMjZ7gPKu8kZCPCZ aqYIoyoaI3ItcdcxwnU46chVQukikgUAjw5PwqGo4+5GjQxt/u23tMTD0vuv3ccmtLUl Axr7tmGELdNA+mRVHD0/zBPp7VcqpAEWOQQeKCsqnJuqkRvdELWZVbfP9ueHZmLCwHNJ OAhLEQVc7b85F42ZLxdhrKRrRwHt6AXWyPIa3KKiTAYlTtcrUG43zu+efaVC6N9wVXOw xG/g== X-Gm-Message-State: AMCzsaWT2Gdp0QnUY0hr1sSjOCTI5SrPJa+WSONwpBgK07IiEGP4wDu6 FUu7rCL7KqSkIjCeq6OLEuYWmA== X-Google-Smtp-Source: AOwi7QDraJP9+npeiWD68+JLNToLL4BYcuYjaC8+LCcCuU1s4EwO8KfZR814tqD7LFFCc1kOxwbopw== X-Received: by 10.55.217.155 with SMTP id q27mr5689437qkl.323.1506731705870; Fri, 29 Sep 2017 17:35:05 -0700 (PDT) Received: from pallmd1.broadcom.com ([192.19.255.250]) by smtp.gmail.com with ESMTPSA id u32sm3596918qte.25.2017.09.29.17.35.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 29 Sep 2017 17:35:05 -0700 (PDT) From: James Smart To: linux-scsi@vger.kernel.org Cc: James Smart , Dick Kennedy , James Smart Subject: [PATCH v2 11/21] lpfc: Set missing abort context Date: Fri, 29 Sep 2017 17:34:37 -0700 Message-Id: <20170930003447.10747-12-jsmart2021@gmail.com> X-Mailer: git-send-email 2.13.1 In-Reply-To: <20170930003447.10747-1-jsmart2021@gmail.com> References: <20170930003447.10747-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 Always set ctxp->state to LPFC_NVMET_STE_ABORT if ABORT op gets called Signed-off-by: Dick Kennedy Signed-off-by: James Smart Reviewed-by: Johannes Thumshirn --- drivers/scsi/lpfc/lpfc_nvmet.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/scsi/lpfc/lpfc_nvmet.c b/drivers/scsi/lpfc/lpfc_nvmet.c index 354e60043ea1..e410a6f1e2c2 100644 --- a/drivers/scsi/lpfc/lpfc_nvmet.c +++ b/drivers/scsi/lpfc/lpfc_nvmet.c @@ -822,6 +822,7 @@ lpfc_nvmet_xmt_fcp_abort(struct nvmet_fc_target_port *tgtport, atomic_inc(&lpfc_nvmep->xmt_fcp_abort); spin_lock_irqsave(&ctxp->ctxlock, flags); + ctxp->state = LPFC_NVMET_STE_ABORT; /* Since iaab/iaar are NOT set, we need to check * if the firmware is in process of aborting IO