Received: by 2002:a05:6a10:c7d3:0:0:0:0 with SMTP id h19csp78149pxy; Sat, 14 Aug 2021 00:42:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzzIM+azK3TBAhfUG6SOBr9vtBq3o6sU7wTmmQZhnnA/Wfv6aFBVJ3E/56YAI2SbmTfyuU4 X-Received: by 2002:a17:906:ed1:: with SMTP id u17mr6282856eji.304.1628926978919; Sat, 14 Aug 2021 00:42:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628926978; cv=none; d=google.com; s=arc-20160816; b=EVP1ina0xOvAYbY73bOq5Mkh8TD/9L7BbKLKtDwnqY8mIC/jK55j+WxhaDaMPYPFxg PbU/iEWlavCkpyCL4qQxa+ASuvbJ3mTQKNQWVPZf1HuInPuKw0vfmUNDAYd5KBRge8TD GnutYA0BbcBYr5LKMEjxD5/OfRX5UW4Rst7HPPe/8frrOvt1tx347tiYUMGtARzsH9ww Sm0VFLfiEOuXMqoP3MX46L2PJEAT0TyjH24ODkoRS61eKZVjjOAKAj2FQPDEGAUsXeMn sL4mYxC8zjfGGBKFZr6y6GTonDvsbW/T2ulO2dcqXK+IgVG5ILHedHsUyck/2kKsTpaj 81cA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=hoh1xVYs+h5gFUXtcaWzmKSsQXEnS7zwcXMHisIUND8=; b=qKgGFVmSvJqwF7/bpiYVc1p1ChUpJtU3HM4UfQJFKkAxK4WkTQksZHHsnZ/XvESgxO ghTpI+2TgWgst4N2MWvI7sQaELWVAV1R6AvoZcvL5oRMQaCUtQEd0FPai8u9xyNfeuc4 yExuR1AbY4sGvX5Lf8KLk1Vg7VkO6U7+qjkNyj87QcbyC4fMu1Kt+HOZ1NDHjYfZz4BV kK0QDWe0Tr8cblJP9oKe48z9s8amjXc2x3Xq/uuDUcOlR48q+5xAmB7/bK+pUoh1VXHM rjWN2BgJ8npgi5j1+6F/e1bQuz8dIedNJI5TmGSokIRFhAIk+S176Cq3N3xKTBaeJK75 RLbA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k9si4299371edh.461.2021.08.14.00.42.35; Sat, 14 Aug 2021 00:42:58 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237195AbhHNHkT (ORCPT + 99 others); Sat, 14 Aug 2021 03:40:19 -0400 Received: from verein.lst.de ([213.95.11.211]:49489 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236519AbhHNHkT (ORCPT ); Sat, 14 Aug 2021 03:40:19 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 9361467373; Sat, 14 Aug 2021 09:39:48 +0200 (CEST) Date: Sat, 14 Aug 2021 09:39:48 +0200 From: Christoph Hellwig To: Bart Van Assche Cc: John Garry , satishkh@cisco.com, sebaddel@cisco.com, kartilak@cisco.com, jejb@linux.ibm.com, martin.petersen@oracle.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, hare@suse.de, hch@lst.de Subject: Re: [PATCH 2/3] scsi: fnic: Stop setting scsi_cmnd.tag Message-ID: <20210814073948.GA21536@lst.de> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3e5d1bd4-cee9-7fd0-93a4-58d808e198f6@acm.org> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(). 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?