Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp180990pxb; Mon, 16 Aug 2021 03:04:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxDyOvn4miTqe7p5+bEaY3oOQO00v8Lv78Y478lcGLGe0NIoWaw+vUU0mMqC48SnNHTkBwe X-Received: by 2002:a92:b501:: with SMTP id f1mr11268836ile.59.1629108243929; Mon, 16 Aug 2021 03:04:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629108243; cv=none; d=google.com; s=arc-20160816; b=dP021VY5nwwRQZuxK/wqO3x6f9a9zifKnZHx/A1Nh36v1WHu7KX+wo4YzzJkxwuOok /JRdYCgQKrBgTRyFonWKdcg1fCe2FBvQ3M5mVtSZtPnOky6EcruMSavdUyQuc6J7A5DY 59L3c5CdwhceH+eBIQnWuzAKa9dznuHM1GsIxS6nr10cJ1+/ant8hwwVDty7q7pXByQd yeh7oCieg5hD/7SrlgvUs3MkJcP7je08UoEtzhq70bhAJuA4P3AFzvB2lR6Sq6m+djOq iaedEUCqLF8ig3kvP4IWIBGyEQ3ATcorJZicQjOY7eorrIMGv8cyTXDdVQeFRUhH2fXb O/lw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=jteh5sREie4kmoNylc4bklOGU4UFkoLZ8Qg96OnI4tg=; b=j2cJPSk2Pt7ZqN9TPE/YJJqH4VK71TzxAPdCt2r82P7benjZkrahMqU0nx/XanCCVa P2rB2z1O5BPuzc4DAYMvIsGXvIzykzqHQIxpp+WGlAgkdTwh18m8f6QUcyHVUxsOnrJg +AOL479XlJf+Qx2WS6A7ijzjDEjb8380iLWFhOmKlEY6E63Ve0oUU7Z3T0jd1utkH3uL 0lw2o+49jgfwF/Rj5VMFZ3y5RHncil6ihP45nDboO0gSgAJrYOryAp+uDT90S89iBrL8 UiCwP8z1nF0wHDM0IZdKWHU8xaAJEvyOihKKf2ManSQWsLDSFtnDMVbgZgP1uNmAyhHW JQjw== 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 l3si1157346ioq.2.2021.08.16.03.03.52; Mon, 16 Aug 2021 03:04:03 -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 S235828AbhHPKBw (ORCPT + 99 others); Mon, 16 Aug 2021 06:01:52 -0400 Received: from frasgout.his.huawei.com ([185.176.79.56]:3652 "EHLO frasgout.his.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235861AbhHPKBP (ORCPT ); Mon, 16 Aug 2021 06:01:15 -0400 Received: from fraeml742-chm.china.huawei.com (unknown [172.18.147.226]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4Gp8lj6C3Bz6BGZr; Mon, 16 Aug 2021 17:59:45 +0800 (CST) Received: from lhreml724-chm.china.huawei.com (10.201.108.75) by fraeml742-chm.china.huawei.com (10.206.15.223) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.8; Mon, 16 Aug 2021 12:00:31 +0200 Received: from [10.202.227.179] (10.202.227.179) 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; Mon, 16 Aug 2021 11:00:30 +0100 Subject: Re: [PATCH 2/3] scsi: fnic: Stop setting scsi_cmnd.tag To: Hannes Reinecke , Christoph Hellwig , "Bart Van Assche" CC: , , , , , , References: <1628862553-179450-1-git-send-email-john.garry@huawei.com> <1628862553-179450-3-git-send-email-john.garry@huawei.com> <3e5d1bd4-cee9-7fd0-93a4-58d808e198f6@acm.org> <20210814073948.GA21536@lst.de> From: John Garry Message-ID: <2e6dd74f-bd5a-22b8-f20b-d4b54fc4ade3@huawei.com> Date: Mon, 16 Aug 2021 11:00:29 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.12.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: [10.202.227.179] X-ClientProxiedBy: lhreml720-chm.china.huawei.com (10.201.108.71) 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 On 14/08/2021 13:35, Hannes Reinecke wrote: > On 8/14/21 9:39 AM, Christoph Hellwig wrote: >> On Fri, Aug 13, 2021 at 08:17:45PM -0700, Bart Van Assche wrote: >>> On 8/13/21 6:49 AM, John Garry wrote: >>>> It is never read. Setting it and the request tag seems dodgy >>>> anyway. >>> >>> This is done because there is code in the SCSI error handler that may >>> allocate a SCSI command without allocating a tag. See also >>> scsi_ioctl_reset(). Right, so we just get a loan of the tag of a real request. fnic driver comment: "Really should fix the midlayer to pass in a proper request for ioctls..." >> >> Yes.  Hannes had a great series to stop passing the pointless scsi_cmnd >> to the reset methods.  Hannes, any chance you coul look into >> resurrecting that? >> > Sure. The latest iteration of that series - at v7 - still passed that fake SCSI command to the reset method, and the reset method allocated the internal command. So will we change change scsi_ioctl_reset() to allocate an internal command, rather than the LLDD? Thanks, John