From patchwork Wed Aug 18 13:53:20 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Garry X-Patchwork-Id: 498908 Delivered-To: patch@linaro.org Received: by 2002:a02:6f15:0:0:0:0:0 with SMTP id x21csp697501jab; Wed, 18 Aug 2021 06:58:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzLnRHvleA7yxKBJqkzO9VsnvjD5kK8Bc2KwDkNJzlhKDCTwcdpacn7KJDBIvBWIZFCiOou X-Received: by 2002:a17:906:5a69:: with SMTP id my41mr9845280ejc.220.1629295097589; Wed, 18 Aug 2021 06:58:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629295097; cv=none; d=google.com; s=arc-20160816; b=q703rx0qsFLzk1m/IFwBcbhpQQkJMDTOHdFFlGlowxfDSYdSIztI/U5cF6zXPYlQGa kgyZCD0ONNvp9QZHuzTZPxb+N2vTo0ihXd4HkQoWEL3QADgK3KCRJ8axAplSjjWUkGBb 6qvZTiwh6aQy5QZLbQ6ZMwPodFB5U6fKIdkmCFJ/J/U+H+ygHIKZAb93kTJWHCq5CFjw OqTYKISnaCX6srIu3LfS2JVbwAtD35N5kXRITkiOGVolJLGD0d92F7lSkPRJlGxKdyud ru7i6bZuyvbPyDw+9Acd3lyZkH+vLleYWyM1JyiFev2hl8bKh71juh1ZGmKgfaPHRkrq vFMQ== 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=vC71G78TSP3sBjge7udDh5K77ij2AnIefl5Q3KNZeVRF9Zz2L0fpKDpnQPNq6TdIhP h91RUQkV+Vzidf3AT3kqKYOcME2sS86IcIrc/Wr8JHclqZA7zqERIqLWI4MGdsVBwXcR Tm4XF8XDX0GibzHAd+36wH5hG6//B9+2VQh/VUz3hv2Fe696n1Jva3DxpAd+ePvrx9V0 H0a2k9u9a5Rm5ULegLiOZuhzmyqRlVoe40hxxJdhduR4ycWNC9YxsmmMH27H8rp1KxKA H4gvvICFFJwa8QS3LNY9WAtxC35MNWnc/DsXbmcvxV4x/OZuZO5vgeziS29w7dIVmiOO 9znQ== 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 y6si7077ejd.416.2021.08.18.06.58.17 for ; Wed, 18 Aug 2021 06:58:17 -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 S238098AbhHRN6v (ORCPT ); Wed, 18 Aug 2021 09:58:51 -0400 Received: from frasgout.his.huawei.com ([185.176.79.56]:3664 "EHLO frasgout.his.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235675AbhHRN6t (ORCPT ); Wed, 18 Aug 2021 09:58:49 -0400 Received: from fraeml711-chm.china.huawei.com (unknown [172.18.147.201]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4GqTwr0WmZz6H6wL; Wed, 18 Aug 2021 21:57:16 +0800 (CST) Received: from lhreml724-chm.china.huawei.com (10.201.108.75) by fraeml711-chm.china.huawei.com (10.206.15.60) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.8; Wed, 18 Aug 2021 15:58:13 +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; Wed, 18 Aug 2021 14:58:10 +0100 From: John Garry To: , , CC: , , , John Garry Subject: [PATCH 1/2] scsi: qla1280: Stop using scsi_cmnd.tag Date: Wed, 18 Aug 2021 21:53:20 +0800 Message-ID: <1629294801-32102-2-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1629294801-32102-1-git-send-email-john.garry@huawei.com> References: <1629294801-32102-1-git-send-email-john.garry@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.69.192.58] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) 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 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);