From patchwork Fri Sep 22 06:17:32 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Smart X-Patchwork-Id: 9965225 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 6E9AC602D8 for ; Fri, 22 Sep 2017 06:18:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 608C329707 for ; Fri, 22 Sep 2017 06:18:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 559D62970B; Fri, 22 Sep 2017 06:18:12 +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 D440429707 for ; Fri, 22 Sep 2017 06:18:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751883AbdIVGSK (ORCPT ); Fri, 22 Sep 2017 02:18:10 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:36338 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751809AbdIVGSF (ORCPT ); Fri, 22 Sep 2017 02:18:05 -0400 Received: by mail-pf0-f195.google.com with SMTP id f84so88302pfj.3 for ; Thu, 21 Sep 2017 23:18:05 -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=1CYV/88maZrvUJeodFbNyAKmtp2Hglis1d6V0rrk7Rc=; b=iQ9bCqEfAFtmgwTxBfm0YTcQJ1cHnk7QZurD0NWpQbmhGYs+BE5M744Ue7rpJ7qm8L EfSpiHuTFuBMNsTcAmwUOA2mw2L4XAJV2PPm+YmRTn6T/ii7qnKhqvblb9t/BLW+pqy0 go11OPBedewlIDZTy4E7LBg/FA7QA6RNsl4u9V4i71lnuuNc12SPu20eflMO74fpV5Sn NqhWotv+qgy0UjOIfE16ViJDS3nImdRpOhFNoaGa2PQ2ftrl0PB+WqNmIdcW7rAVfbTs jUutRz1VZxB7Ra7kdEQp+hIHm+Ko74vtPQwnDjDgf1f6AJCs47+HRJnzj188b4GFmaAl J8Cw== 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=1CYV/88maZrvUJeodFbNyAKmtp2Hglis1d6V0rrk7Rc=; b=SqQYVJ5mR/MmAOaFpRrO53JDDpfGQgfBNa4ynCDahiDbW4inweJ9vH0puy5HC9Emq5 EKrbo/M6xDpwmh5yvVJLk1jbkyW28+3vpjLUwZV92cd2CmoN2lMO5wEHLHAMShJmDoyU +0pa3nciSu/8+8bFCBC2Vkk7n48kwgXZ67fYoTsXDc0kAB4ULXM7hcouRjfijD7Px414 tK9BRAW5WsbLWMj5jYuq51dLGxa7q2wkIews2rnwiNEP52/mN6rKTuMXR2afh/vhCju3 2rS/fhbqOPoxsf/h10tjUhsPtTExu1f39pBzm47bMJQN74j4f0lC8PPt4MKUwjNzhY7K eZwQ== X-Gm-Message-State: AHPjjUhlqwfQCOYi1CzpHvkjDJv4tMTa2TmdLcAYhX2xeYrKojJBcc+L yN+4Kv0hw785i7pQc2nAa40wQw== X-Google-Smtp-Source: AOwi7QCOwy5QW7WM5wIrMH8p9Sn1ELJI7cE397rKuK6UKVZ5F1ZksplIeLlkd2AikdGibh+LqDSI8g== X-Received: by 10.98.202.138 with SMTP id y10mr8084625pfk.151.1506061084939; Thu, 21 Sep 2017 23:18:04 -0700 (PDT) Received: from os42.localdomain (ip68-4-115-207.oc.oc.cox.net. [68.4.115.207]) by smtp.gmail.com with ESMTPSA id e87sm5911355pfl.46.2017.09.21.23.18.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 21 Sep 2017 23:18:04 -0700 (PDT) From: James Smart To: linux-scsi@vger.kernel.org Cc: James Smart , Dick Kennedy , James Smart Subject: [PATCH 10/19] lpfc: Set missing abort context Date: Thu, 21 Sep 2017 23:17:32 -0700 Message-Id: <20170922061741.12347-11-jsmart2021@gmail.com> X-Mailer: git-send-email 2.13.1 In-Reply-To: <20170922061741.12347-1-jsmart2021@gmail.com> References: <20170922061741.12347-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 43ad220e17ad..ee88343f3e8c 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