Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3419341pxf; Mon, 29 Mar 2021 01:30:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzcqou3TZ3mmhuAL2CQdGcgZY+UuQbSQ95sTY1RFnPnxycnIZN5rmRVXCtPllNqmIJZOxB3 X-Received: by 2002:aa7:d5c9:: with SMTP id d9mr28454186eds.102.1617006627668; 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=vPIBb9ALjr7B84mc0G35Wmc5aiQV+gRvMnPVDKN+cS0U1zUrNEuTdv/8MfBJdXanQJ ifs+pR/Q6CJjZCV0Rdad/c4Wjl7ijyuGQjbV7rHLizcRP7MQnSmxJODDQSnlMIJEw5Nf wsyc13YpEwuUbi69UeAOT5kzNcowVudKrZUcpvnQ5cN9P876wI1mcwXUiAaQQzPR7XNs 8lVNO0gr8rhIvL0WuvpW2b1ubez3UMDyLO8K+WvWJrygZKUm3kVfbtExoA3MBJbc6HUb W1v8Df43JYzIsSgjzfHn+85ovmPkzsDOf/e4oBOEinVMUDkwwS5uXrFxvPVJDLDZylpi 9KNA== 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=IVoxtHJRepHU/BcidHI7XFCVVIMwYY0Re2zYo70vipY=; b=DKvIflPg4K/YMulGPWkiHxzsrJokp0fBf66ech2ESWY9VEjx9hEp+CQ6AqHvttDfdc 1aYlPc0yt9Lc75JLkqzyHVYORU5ulp1BLY8qm4qzFXu8AA62wo+DnsGp+SaPkOqGHZfX 1jXMj9KOat1aPQl9jN2SQlDU6GFN8T2swHXHwT6Fy7Wx7Hk10bEPdGBc59P3O0vW0bPr L6ZFjtQo0r+8v+pHvhsEQln1pM+pAOBHy0y2gGjV8ZOxdp2ax575+6Xrz0xOboxNjD2H pbZp/+Hy0NhtlnlcWkIDHff5IiWz6IxKg3BiJRaVTvH9lFI7NSerMa3UX2/tquxHBJJr b9Og== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Vlomh38R; 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 n18si11984547edt.3.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=Vlomh38R; 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 S234702AbhC2I24 (ORCPT + 99 others); Mon, 29 Mar 2021 04:28:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:34936 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233200AbhC2ISa (ORCPT ); Mon, 29 Mar 2021 04:18:30 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2E0C86196F; Mon, 29 Mar 2021 08:18:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1617005909; bh=RtfMfFdXbSM5Jog0bLkmqFSpPWEsmx/kkedCJDwYaaM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Vlomh38RRut+pmiCBtvcQLRyGm4VyG1i3lPNhFYReLVzKrnqIzSFP+DDdBeZfKjAX 9I41BOtrgsrTgVjFRQP13MVXkD8yhyKrDy7xMMdH25ZnY1/c9AG8Iut3yB9UwX6okD lXuuVkY3CAHtfcaIJeaSh3Qkx2c3KrON2k58ZkVU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hannes Reinecke , Sagi Grimberg , James Smart , Daniel Wagner , Christoph Hellwig , Sasha Levin Subject: [PATCH 5.10 048/221] nvme-fc: return NVME_SC_HOST_ABORTED_CMD when a command has been aborted Date: Mon, 29 Mar 2021 09:56:19 +0200 Message-Id: <20210329075630.785025386@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 ae3afe6308b43bbf49953101d4ba2c1c481133a8 ] When a command has been aborted we should return NVME_SC_HOST_ABORTED_CMD to be consistent with the other transports. Signed-off-by: Hannes Reinecke 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/nvme/host/fc.c b/drivers/nvme/host/fc.c index d221a98a677b..41257daf7464 100644 --- a/drivers/nvme/host/fc.c +++ b/drivers/nvme/host/fc.c @@ -1956,7 +1956,7 @@ nvme_fc_fcpio_done(struct nvmefc_fcp_req *req) sizeof(op->rsp_iu), DMA_FROM_DEVICE); if (opstate == FCPOP_STATE_ABORTED) - status = cpu_to_le16(NVME_SC_HOST_PATH_ERROR << 1); + status = cpu_to_le16(NVME_SC_HOST_ABORTED_CMD << 1); else if (freq->status) { status = cpu_to_le16(NVME_SC_HOST_PATH_ERROR << 1); dev_info(ctrl->ctrl.device, -- 2.30.1