Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp67998pxb; Tue, 2 Mar 2021 19:27:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJy54IPWEOwYFGyTNb1wo14ZiqVB8OuRK30cbtluMvdAOprGLZAVp6Yqhl7bjmfd5pLdaRVU X-Received: by 2002:a05:6402:499:: with SMTP id k25mr23461677edv.294.1614742034933; Tue, 02 Mar 2021 19:27:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614742034; cv=none; d=google.com; s=arc-20160816; b=PSJsfg6wZl0pdi3phSk0QG80tBsJ557Lu9VexCVw9aCOJL/O/eIQc7M5qVx1+okw2J BDi21l8m4AnCJRKVqKjsaGoY4IbT0Uq0/eqS0HoPkl/xs0WN0Ekgb2CfhqQPU18Hqp0D 7Zz+bkjkQxDFj+Sq+9HbLrubrKv2P8T2d3uO4R+cPz+zJuwUveCoTD1BTxhkxiVY/0bq WXVGYJb73AjRsbLe1oJiFfxOduUcZwt3hsWeuA/NT0AvkDfMED+URyGC/ObET/XD2gBD aK4y5Rftck7Y0L/6BTN4/kxXYIBXXk0O2Oz+fjIIxsIm3wpnQE+0Yd1N41HkEsBhY0GU klZQ== 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=I92dDmvOJml8/lM7kBS9aAzyhsY6bCSFM0lpBb+KAQI=; b=iwnw83/88RokRVPmSRQn0ZbthVlP2Ov6mOdlNz5EW3MpqFaGJJMg1FTqNO904/ljO5 VzFXTxvwizLuZouP3gRC1WnIJa45mpm4Y3p2w3ZFdS5VhKcM3G/uzuK1lAWwJiuAUV0a OxWNg/d6i5y+0NqhPTskUo+ThrTnv/m8hX2K/MBVfU5KuhKb4YAMTJQfTK0jkUJxkOCA tNL8MVlcNmD60xlrHYP/c95VYXfFJZ80CwcGPfwTlWXGfFVB0Rvw3ZYgWcRgSq560ZsE q1TRz9NYL8vJmiVZQ7qXi7c+Ne/fAVj3N+l3cIX4TFZYA4dB1ukAiZHV95B9ArX46BX+ +TRQ== 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 v12si14228300edc.550.2021.03.02.19.26.52; Tue, 02 Mar 2021 19:27:14 -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 S235653AbhCAN1X (ORCPT + 99 others); Mon, 1 Mar 2021 08:27:23 -0500 Received: from mx2.suse.de ([195.135.220.15]:35276 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235308AbhCAN1W (ORCPT ); Mon, 1 Mar 2021 08:27:22 -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 35008AB8C; Mon, 1 Mar 2021 13:26:40 +0000 (UTC) Date: Mon, 1 Mar 2021 14:26:39 +0100 From: Daniel Wagner To: Keith Busch Cc: Hannes Reinecke , Sagi Grimberg , Jens Axboe , Christoph Hellwig , linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] nvme-tcp: Check if request has started before processing it Message-ID: <20210301132639.n3eowtvkms2n5mog@beryllium.lan> References: <20210212210929.GA3851@redsun51.ssa.fujisawa.hgst.com> <73e4914e-f867-c899-954d-4b61ae2b4c33@suse.de> <20210215104020.yyithlo2hkxqvguj@beryllium.lan> <20210226123534.4oovbzk4wrnfjp64@beryllium.lan> <9e209b12-3771-cdca-2c9d-50451061bd2a@suse.de> <20210226161355.GG31593@redsun51.ssa.fujisawa.hgst.com> <20210226171901.GA3949@redsun51.ssa.fujisawa.hgst.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210226171901.GA3949@redsun51.ssa.fujisawa.hgst.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Feb 27, 2021 at 02:19:01AM +0900, Keith Busch wrote: > Crashing is bad, silent data corruption is worse. Is there truly no > defense against that? If not, why should anyone rely on this? If we receive an response for which we don't have a started request, we know that something is wrong. Couldn't we in just reset the connection in this case? We don't have to pretend nothing has happened and continuing normally. This would avoid a host crash and would not create (more) data corruption. Or I am just too naive?