Received: by 2002:a05:6a10:8a4d:0:0:0:0 with SMTP id dn13csp957528pxb; Fri, 13 Aug 2021 10:02:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyluE9V5KvFb9q/kyNHpHSBQfMNF/UaiIHg8zvTIEed+bkh2lOCqPymNQfg43S0aSdw0hGG X-Received: by 2002:aa7:d681:: with SMTP id d1mr4437764edr.186.1628874160731; Fri, 13 Aug 2021 10:02:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628874160; cv=none; d=google.com; s=arc-20160816; b=g0N3wa1HAGBUaB7OwTUez+A89vN4BcRYGmU5xCQMspKKda1Nfvl0EmApqZV/pJr4di ofqGeDgG5JQMrvkIPl817JnxD0BotNvfFST3qfEWB3Ijw+b7BWu9KykCgh5lgjawp1Gh 4PCkPnbs26kekYc+6XdYNMINfLuXQPv0c+ZvK8KOlK+1l9KvFJj5nWMJmQ13qX5cElTV Qt7HrlLtv8clI6eq/+q1D5EXJnQXbnYGINXED+4Y5Ux2Ryn9zct1Rt0DSpUQGri+5ixK co2IMOtmK/KnU0ggm0HinKpQNbwcLVDWNh4ndcmR15zrkwPVqitbZ+h/cZP7gNlglPD1 QT8g== 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=u4K6I3ZosRRoJgbkkk1qOY1ny0jl6Jb/RVFFVGqcUPY=; b=ZTKrexyC1YTUdX6GJVpszL/CnnbFr1awgHka9HmsqP4dbVwqEuazkkip3qkIaHbj14 Zc+mWgTuHCIAOv6ByiyRUEbemza5K2uaRpN2A4P+jAY/2jEe8lmjUVGeFSEOFxWZFYiH l7DOR5yUrC+iUXDQt1BDAdJcO+1jNJ5ZonLdbiqjsTIVLVsClEREVvCtW/vIc6v7RhRI bCP62qNjV648tc1U7TlwtIruQYbDq1Vbqw7RuhHUllvFEUiBzzXQLPh1w+ctWLQaLBgH 4P3zXyhLF96mfziSYDeI7jZxPqRs8I0YVjT82BysIhnJi953XctEvp3NByUeBLdeBWxj 7dpw== ARC-Authentication-Results: i=1; mx.google.com; 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=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 dn6si2510692ejc.209.2021.08.13.10.02.16; Fri, 13 Aug 2021 10:02:40 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240760AbhHMNyg (ORCPT + 99 others); Fri, 13 Aug 2021 09:54:36 -0400 Received: from frasgout.his.huawei.com ([185.176.79.56]:3647 "EHLO frasgout.his.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240678AbhHMNye (ORCPT ); Fri, 13 Aug 2021 09:54:34 -0400 Received: from fraeml736-chm.china.huawei.com (unknown [172.18.147.207]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4GmQ4h4Dl2z6GBx3; Fri, 13 Aug 2021 21:53:24 +0800 (CST) Received: from lhreml724-chm.china.huawei.com (10.201.108.75) by fraeml736-chm.china.huawei.com (10.206.15.217) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.8; Fri, 13 Aug 2021 15:54:06 +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.2176.2; Fri, 13 Aug 2021 14:54:03 +0100 From: John Garry To: , , , , CC: , , , , , John Garry Subject: [PATCH 1/3] scsi: wd719: Stop using scsi_cmnd.tag Date: Fri, 13 Aug 2021 21:49:11 +0800 Message-ID: <1628862553-179450-2-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1628862553-179450-1-git-send-email-john.garry@huawei.com> References: <1628862553-179450-1-git-send-email-john.garry@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.58] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To lhreml724-chm.china.huawei.com (10.201.108.75) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use scsi_cmd_to_rq(cmd)->tag instead. Signed-off-by: John Garry --- drivers/scsi/wd719x.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/scsi/wd719x.c b/drivers/scsi/wd719x.c index edc8a139a60d..622aec075aba 100644 --- a/drivers/scsi/wd719x.c +++ b/drivers/scsi/wd719x.c @@ -466,14 +466,16 @@ static int wd719x_abort(struct scsi_cmnd *cmd) unsigned long flags; struct wd719x_scb *scb = scsi_cmd_priv(cmd); struct wd719x *wd = shost_priv(cmd->device->host); + struct device *dev = &wd->pdev->dev; - dev_info(&wd->pdev->dev, "abort command, tag: %x\n", cmd->tag); + dev_info(dev, "abort command, tag: %x\n", scsi_cmd_to_rq(cmd)->tag); - action = /*cmd->tag ? WD719X_CMD_ABORT_TAG : */WD719X_CMD_ABORT; + action = /*tag ? WD719X_CMD_ABORT_TAG : */WD719X_CMD_ABORT; spin_lock_irqsave(wd->sh->host_lock, flags); result = wd719x_direct_cmd(wd, action, cmd->device->id, - cmd->device->lun, cmd->tag, scb->phys, 0); + cmd->device->lun, scsi_cmd_to_rq(cmd)->tag, + scb->phys, 0); wd719x_finish_cmd(scb, DID_ABORT); spin_unlock_irqrestore(wd->sh->host_lock, flags); if (result) -- 2.26.2