Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3419340pxf; Mon, 29 Mar 2021 01:30:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxfKVEjcD2M0PtlU20HQAZfI3wsP8ejA+ce8QOl2+nrrkn5ZPhGsETQ0l57Y4NHT8ST5FBE X-Received: by 2002:a17:907:3e9e:: with SMTP id hs30mr27816260ejc.66.1617006627697; Mon, 29 Mar 2021 01:30:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617006627; cv=none; d=google.com; s=arc-20160816; b=tTRnaC8PXUUIAtwTXLOmHalnBbFPqDNQdBSBQjnFZqm32o9nBcJYLhJJCI5qMi93mt OfTOd/6hHlQ9LHbKSSOQPDGuyF/2aMP0MgN+xYvCYrVrxE292oDq0UecFxsy7zUlKRoT JLTelL246haUdnhd6wfUn7QPLN8WMYIrAHd3cUNqwH+8hya92KHPaLY4uwqXMD0wb953 VJejQzX9XEJp+90nJZwEtw5aJejRfof2xcmqqF7dEUfkptLMUCZAzIkUHQXv9mxRr6kd 0OLqIusGlm5Sxs70C4kr7l0q7VHDkndDvBHrHiHa7lZB3hz5Ek397fNn++lgQ8GqER6P BIQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Gz0qTmvtxRdflj1giXwKnmGDzAHZYqj0iDZybTczPEo=; b=06FpBbm6FwqyYU+ACZzUfqc98fnJZ6DU/+ORzEeXoGfRUgNSZIjxyH8bbR4FqDeDiX 4HEL62KKkzo8EBcJ64tYhjyCLDqAhgS/+3DqpUC+2U08vla4Oi7vnnSsSiZUo6SbiEo+ XTbJtDmHgXKkM816E0Wx8O9p7Ukvv8zlKxCWs9wgcJsU9qahLOefaOtm8xEQnAqBm/rh PO94CKM8zmGzL6L1EBiQVkjiZGDsr1QIKLy8TAFKGpf8eIM1Z2NMdSlUZpwVuDIghmjc sJdt3AZVPullDb19aoyNMXl7Wk++SUg4RQpC6QYfHbTHe+LNOQSISRvHRcfgwI/ScyWE bRkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=K0H4jlHa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k13si12451014ejc.452.2021.03.29.01.30.00; Mon, 29 Mar 2021 01:30:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=K0H4jlHa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234661AbhC2I2x (ORCPT + 99 others); Mon, 29 Mar 2021 04:28:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:34622 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233126AbhC2IS1 (ORCPT ); Mon, 29 Mar 2021 04:18:27 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 436CB619C7; Mon, 29 Mar 2021 08:18:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1617005906; bh=bYMVX2QpqorTMorYYnTQF9J2xirvafrgBhhBzL0/aNA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=K0H4jlHaTUhbkGIrai05TjojkGz0ryq57xXk3u9OUHFoniut0MZWYnkNv1P/vnvRI Jv4xItO5G4AxB06UtbF5V4q3fRR8M+nXYVnrWCutnLgg4S7/aExUEJ/Cvq+GvpKRLc 39aDsOkoHrNinplBoyh9rdt/OGXGThnsG300AdWE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hannes Reinecke , Keith Busch , Sagi Grimberg , James Smart , Daniel Wagner , Christoph Hellwig , Sasha Levin Subject: [PATCH 5.10 047/221] nvme-fc: set NVME_REQ_CANCELLED in nvme_fc_terminate_exchange() Date: Mon, 29 Mar 2021 09:56:18 +0200 Message-Id: <20210329075630.744240559@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210329075629.172032742@linuxfoundation.org> References: <20210329075629.172032742@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hannes Reinecke [ Upstream commit 3c7aafbc8d3d4d90430dfa126847a796c3e4ecfc ] nvme_fc_terminate_exchange() is being called when exchanges are being deleted, and as such we should be setting the NVME_REQ_CANCELLED flag to have identical behaviour on all transports. Signed-off-by: Hannes Reinecke Reviewed-by: Keith Busch Reviewed-by: Sagi Grimberg Reviewed-by: James Smart Reviewed-by: Daniel Wagner Signed-off-by: Christoph Hellwig Signed-off-by: Sasha Levin --- drivers/nvme/host/fc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/nvme/host/fc.c b/drivers/nvme/host/fc.c index fab068c8ba02..d221a98a677b 100644 --- a/drivers/nvme/host/fc.c +++ b/drivers/nvme/host/fc.c @@ -2443,6 +2443,7 @@ nvme_fc_terminate_exchange(struct request *req, void *data, bool reserved) struct nvme_fc_ctrl *ctrl = to_fc_ctrl(nctrl); struct nvme_fc_fcp_op *op = blk_mq_rq_to_pdu(req); + op->nreq.flags |= NVME_REQ_CANCELLED; __nvme_fc_abort_op(ctrl, op); return true; } -- 2.30.1