Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp226726pxb; Mon, 16 Aug 2021 04:13:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz27ypX6tgFQoL8mwKb8L3+EMTBHaeW7Oku2NQfTdcxTkrSzjstMum1d8i7Yse17TwRkSU7 X-Received: by 2002:a17:906:c00f:: with SMTP id e15mr15463601ejz.502.1629112422946; Mon, 16 Aug 2021 04:13:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629112422; cv=none; d=google.com; s=arc-20160816; b=YNH++7zTVQgVSv+8pPppteimb0YqzIXLy0vGsyeLAyPMH5cqvj8KFi2oteXVBlEJpq l5dQvAhv9PLwNpllXDaZxCzJNb+8YhH+JXQjZIKNbVEjSHt9iYsaQli07JO8q7jxfteR N0kIzPle3rXvFImtK0TWrpIL7PbLEvRyv2rn88riVQqK6iZjawPRvRA0HdcLTWQk/bGQ 4+JtdEJOFlJ5JGDHxIKty9oLTO7PmDplQP7TXZKbK14Z+QMp2TH4raFKRuZSIc8Z9L/8 ue4H4GS/h5sgz4N7A76JuEE7dTYrxmqUPrulHgX8/leAgRf1vSH0nvLFt9wOa6j5mgSk 133w== 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:dkim-signature:dkim-signature; bh=fQLCqoGLB8wD1bVQrV6+hI3/ERfrf7diJmaBFIK3Mxc=; b=Yv8BVN3Mgrofy8T2sXZruPAY7PMdqaBDnjVzX4/YBfUmKryjOjJ9Z7YgsVZFlLLqIk iz193se1sl+y0+gjQX1v6n4cG/FsFNfOmKyIxhGu6lp23VPuDe+yQLqSsf+FSEUbHAg1 t3k72IizSPDkm9McpWCcwthfqDy6wLkmiBf04rIMNC7/sSNCtKYkiKHlTzaoZvS92ZVc HKjL/vIQtafjwH0TNaLWKXuTRVjyFYa6Nr+r2tk1Gx8z5R7bfJ0sctutkEGFqAFPxYDb T6coakS2J0Rhq3rGHQAnrNd97gGNh/q1GvDhenfpeLqz3KxrnvkydaH/Ik1hVBo5zwXD t8+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=eHIT7Ra3; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b="+v/pI8gc"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gq9si9584289ejb.654.2021.08.16.04.13.18; Mon, 16 Aug 2021 04:13:42 -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; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=eHIT7Ra3; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b="+v/pI8gc"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235874AbhHPLLl (ORCPT + 99 others); Mon, 16 Aug 2021 07:11:41 -0400 Received: from smtp-out2.suse.de ([195.135.220.29]:55558 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231143AbhHPLLl (ORCPT ); Mon, 16 Aug 2021 07:11:41 -0400 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 1CB761FE29; Mon, 16 Aug 2021 11:11:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1629112269; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=fQLCqoGLB8wD1bVQrV6+hI3/ERfrf7diJmaBFIK3Mxc=; b=eHIT7Ra3TM9AadU2N5MuKKXo/XPyyQ8s1CIenv8Tg/g0hsC/szJJm6cQ+eojl7GVX3jbij 7j34TZlWYl8l9HrQ32MfGBaVnK6l2SyIk7ZmslSvyM3kdMgBCuIjTbZ02PiWfI5qOdeRHu EvgJfF7WAr9lK6eP3K/3CIKo6O8eWm8= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1629112269; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=fQLCqoGLB8wD1bVQrV6+hI3/ERfrf7diJmaBFIK3Mxc=; b=+v/pI8gcnihBHzcGSdhfSlXQyhwfHwBUGNDOv1USO0a7L4eBehsNS7asOC82Oj385Pbj38 OHQAkt6n4B+MRlCg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id F1BB913B0A; Mon, 16 Aug 2021 11:11:08 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id URAYOsxHGmEXYwAAMHmgww (envelope-from ); Mon, 16 Aug 2021 11:11:08 +0000 Subject: Re: [PATCH 2/3] scsi: fnic: Stop setting scsi_cmnd.tag To: John Garry , Christoph Hellwig , Bart Van Assche Cc: 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 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> <2e6dd74f-bd5a-22b8-f20b-d4b54fc4ade3@huawei.com> From: Hannes Reinecke Message-ID: <9ec48220-68aa-e2d1-5555-d7307e29260d@suse.de> Date: Mon, 16 Aug 2021 13:11:08 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <2e6dd74f-bd5a-22b8-f20b-d4b54fc4ade3@huawei.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/16/21 12:00 PM, John Garry wrote: > 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? > Nah, Christoph was talking about my patch series to revamp the SCSI error handler. With that one we'll be passing the respective objects to the SCSI EH functions (ie struct scsi_device for eh_device_reset()), doing away with the need to allocate an internal command for ioctl reset. Currently revamping the patchset, should be ready later this week. Cheers, Hannes -- Dr. Hannes Reinecke Kernel Storage Architect hare@suse.de +49 911 74053 688 SUSE Software Solutions Germany GmbH, Maxfeldstr. 5, 90409 Nürnberg HRB 36809 (AG Nürnberg), GF: Felix Imendörffer