From patchwork Thu Aug 19 09:32:28 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Garry X-Patchwork-Id: 499729 Delivered-To: patch@linaro.org Received: by 2002:a02:6f15:0:0:0:0:0 with SMTP id x21csp347335jab; Thu, 19 Aug 2021 02:37:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyH4HKtLyJfDdY+uLwYt6xI1ILyMsCzF0hBuC116X9wn/blygtzEvLFnJZOxynrVurjiBvF X-Received: by 2002:a5d:8744:: with SMTP id k4mr10980742iol.9.1629365840780; Thu, 19 Aug 2021 02:37:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629365840; cv=none; d=google.com; s=arc-20160816; b=S1T7ZawTPApW/jOVtXfc9YxUy9dbsjzRQDcrcS/6SS4kic9AvZMP66UiRoq5HEhpsf G643k/YEPuYwRHwSeI7RvrQ7rU7JC8TNuCQSbMSPuyp3Az5aP6ogq2kKj9nCLkn+ypHj hvtuPT5a6Z22gEqprEONuVaw2PEdZ1j0SyVQwIDOu6DBAXckJfsXiiDu9AczTKP30d58 7RgjMuIJBftIngLPCYgECVvS5G1Jon5tMNUsD3RWhfmu3hFgq+2Es2i5d091Y9Hpmn1R sHWuGi8Hp1KFwtEdH1tkZrKferRk6xRnd4cV7X1F+WTOIv1L+egEpXAp7b2qyFdH8FU7 Ae1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=F4ywADIUVBs9IY/+lsapoDmy54P9u3/F6SXX+g5Xw7g=; b=qf8baLD5FB1GhvHuZcgoCwjHKO2JVYW7r8Zl7YpfhlKQ30L8t/VuHCz3hK0CA3l/sP q66lFo6BCnTPkAG2EJN9wXO5i/IJ6sdF/2Cq7mezNbqJp/XTUoRW1zXIE8j7hlgjPNMX JnJ3YOZW48jRTFMLCuqgo8y3VbZ3PGwwW0mvs05Lwh8n9yj5zXEAKUqYvzW5V+jOtLlz NtSuFgiUSrlys7SOi3nM9NXb960CzZTScVEyhHCTn4UkuNA2lMQyY6qODM3EYep89nDp 0XHWqK9ha/ihkQ1+Hk1CkWM1yiU8hOSIndHmBLu9qoKAMtRtPf7QdTRmznh9/7+XKBDt 83Ig== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-scsi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-scsi-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e123si3180791iof.100.2021.08.19.02.37.20 for ; Thu, 19 Aug 2021 02:37:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-scsi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-scsi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-scsi-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236292AbhHSJhz (ORCPT ); Thu, 19 Aug 2021 05:37:55 -0400 Received: from frasgout.his.huawei.com ([185.176.79.56]:3673 "EHLO frasgout.his.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237404AbhHSJhz (ORCPT ); Thu, 19 Aug 2021 05:37:55 -0400 Received: from fraeml710-chm.china.huawei.com (unknown [172.18.147.206]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4Gr05F0GlWz6D9C6; Thu, 19 Aug 2021 17:36:17 +0800 (CST) Received: from lhreml724-chm.china.huawei.com (10.201.108.75) by fraeml710-chm.china.huawei.com (10.206.15.59) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.8; Thu, 19 Aug 2021 11:37:18 +0200 Received: from localhost.localdomain (10.69.192.58) by lhreml724-chm.china.huawei.com (10.201.108.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.8; Thu, 19 Aug 2021 10:37:15 +0100 From: John Garry To: , , CC: , , , , John Garry Subject: [PATCH v2 1/2] scsi: qla1280: Stop using scsi_cmnd.tag Date: Thu, 19 Aug 2021 17:32:28 +0800 Message-ID: <1629365549-190391-2-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1629365549-190391-1-git-send-email-john.garry@huawei.com> References: <1629365549-190391-1-git-send-email-john.garry@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.69.192.58] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To lhreml724-chm.china.huawei.com (10.201.108.75) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Use scsi_cmd_to_rq(cmd)->tag instead of scsi_cmnd.tag as preference. Signed-off-by: John Garry --- drivers/scsi/qla1280.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 Reviewed-by: Hannes Reinecke diff --git a/drivers/scsi/qla1280.c b/drivers/scsi/qla1280.c index aec92471c5f2..b4f7d8d7a01c 100644 --- a/drivers/scsi/qla1280.c +++ b/drivers/scsi/qla1280.c @@ -3980,7 +3980,7 @@ __qla1280_print_scsi_cmd(struct scsi_cmnd *cmd) qla1280_dump_buffer(1, (char *)sg, (cmd->use_sg*sizeof(struct scatterlist))); } */ printk(" tag=%d, transfersize=0x%x \n", - cmd->tag, cmd->transfersize); + scsi_cmd_to_rq(cmd)->tag, cmd->transfersize); printk(" SP=0x%p\n", CMD_SP(cmd)); printk(" underflow size = 0x%x, direction=0x%x\n", cmd->underflow, cmd->sc_data_direction);