Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp207006pxf; Thu, 11 Mar 2021 01:45:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJySuvaKSrXhFKJt2tjJg5HUqz18jEjqeKsXoFSXUbcz1vXgwerZlYZa3V3/Zf3A3ITUhvNv X-Received: by 2002:a17:906:7102:: with SMTP id x2mr2227340ejj.355.1615455936105; Thu, 11 Mar 2021 01:45:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615455936; cv=none; d=google.com; s=arc-20160816; b=T5Urg03IA+Ja7Lg/ri1zh2GRjAHZ0IZSrhig5VgRZwsauYkQwkOGaiTrtUWLLc4Fi6 uwM8Z/1TIyyXH9NKqpIr05aIO9ttcDMoORBNmSTl1dWgFsW+bR/JL2X2q1sebP84HtSX 7JDOwF3y4/e4oXbuwEkuoWHqIEezCusy2eAZ9I1lWto8hHthE1gllc4DYis3wq0dTu56 wvrHpqAh5sdbn5zmQDwiCCyqCs4gwjE3ZIxJw4FArXzXtpsYVJtyudQ/txczrpMt9GFt QGz62oYE01pluYEfWrPzroObaASHbkM7ekY105vqSRoh4LNl+es3+NvaWN0wlgW5lhJn df/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=/j+IKgv7mM6ZboU4PFItdVnLCFym0ADQPuCt01NIoL8=; b=wBRv9CKg7VMRrUpPNUvthzKw/eN/+EX9T2Y1yc1HQxukQyPOfzZgnnzsAeBAkGVRUt ugU81KKeFt3kTg/7BMoRadJedRM0CAWrWyd1WjatYk/wU305Tsp6RkYkCR4GAEL6AaHB D1bWLqonilKkpAOPmtIF9r4aCMzuH73sMGZsTbdS8/P95BomKP525u5Q6u4O4curkDRP KZrs5/i4FntroF7lMu3L5sZWWN/7IKrL0gsALrHORFMMn2cJgDcPimYnhm39NjXO03cF 39Jl+iQ70JXO+FVKQ0YmK2v6rmZatV2j4NLXQg00BCk69NEKe5uDK0z4wqGTYJ4zCfti 38tg== 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 fx21si1432484ejb.91.2021.03.11.01.45.13; Thu, 11 Mar 2021 01:45:36 -0800 (PST) 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 S232100AbhCKJnu (ORCPT + 99 others); Thu, 11 Mar 2021 04:43:50 -0500 Received: from mx2.suse.de ([195.135.220.15]:60188 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231956AbhCKJnq (ORCPT ); Thu, 11 Mar 2021 04:43:46 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id AC78DAC16; Thu, 11 Mar 2021 09:43:45 +0000 (UTC) Date: Thu, 11 Mar 2021 10:43:45 +0100 From: Daniel Wagner To: Sagi Grimberg Cc: linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org, Jens Axboe , Hannes Reinecke , Keith Busch , Christoph Hellwig Subject: Re: [PATCH v2] nvme-tcp: Check if request has started before processing it Message-ID: <20210311094345.ogm2lxqfuszktuhp@beryllium.lan> References: <20210301175601.116405-1-dwagner@suse.de> <6b51a989-5551-e243-abda-5872411ec3ff@grimberg.me> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6b51a989-5551-e243-abda-5872411ec3ff@grimberg.me> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Sagi, On Fri, Mar 05, 2021 at 11:57:30AM -0800, Sagi Grimberg wrote: > Daniel, again, there is nothing specific about this to nvme-tcp, > this is a safeguard against a funky controller (or a different > bug that is hidden by this). As far I can tell, the main difference between nvme-tcp and FC/NVMe, nvme-tcp has not a FW or a big driver which filter out some noise from a misbehaving controller. I haven't really checked the other transports but I wouldn't surprised they share the same properties as FC/NVMe. > The same can happen in any other transport so I would suggest that if > this is a safeguard we want to put in place, we should make it a > generic one. > > i.e. nvme_tag_to_rq() that _all_ transports call consistently. Okay, I'll review all the relevant code and see what could made more generic and consistent. Though I think nvme-tcp plays in a different league as it is exposed to normal networking traffic and this is a very hostile environment. Thanks, Daniel