Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp4028650pxt; Tue, 10 Aug 2021 18:04:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy3t3xhjn1b6kw4W2Ua9eDs6WMuYRMEEp87m74YNXBEhkMqvU18QY8mEIMyg7GNmYgqe44+ X-Received: by 2002:a02:a581:: with SMTP id b1mr29744222jam.84.1628643877575; Tue, 10 Aug 2021 18:04:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628643877; cv=none; d=google.com; s=arc-20160816; b=F4Z1/mV1jjcDTMtHYRAwe0u/JYSXWKiUc/jkmeMFRhTl73QVTlYgh2mIxjvupc/Ry9 jZJCo6SyvnLJMZ3PHbCxriZyZdmH355nrfCyCsDtjYYxFOUXxplyUZvCDMQqAgOaBu8U Zmn4+hzl59LylfhsRqnwNJL8y3dGF34Qop+1mxrywIXo2kvzpihpoJpwpV8GopBtjNEZ fBudC3RaE0qC94JEMDCutkA0qV6EourMOmG8dtuac6+AKR7M0SlLqkC6gT50o6KT+Mn1 YCU3SMzzNEDeZyz1tuYnCuBMtTl7NSL0c8ET3n5pDUEfGC+JLJxJgBeK25pYQezAHKps Uphw== 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=7NTG/vEAVW33QwSz6IbOwW37gh6DXGDFaf8xH4NDYdc=; b=xBLe45DWX7xeqaor5143h9Xt5apWs0dq/GIGLHfBMMjLLp4CfyGvL16lpjVbZaPPlj sCpJaPo1aaLSjWQuxMb2ZdgY1+qDUHl+fyWFdJCQw/mvvXZeyqybwd3mi4hVZ7PVfTpD WQ94ToZwBLrFxtsk/m1n74O2jqNKnCVWw71qRE7u7lSF5SUCQ+Fx3SLTpiMQT6UM9D3R Q8Jj2Vm8F+dwec0jfn7wzSIKOb+92owPaUeyLwi+QE0lWJZTqz5LabkuQysaQqZYrGWr oR1/a4C4kEIp7MJvpXJPB8XTJv88rJUupjiQBjY3M1S7DsaKccpYAxqmcSXda/IP+VXk eY5A== 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 b11si30437541ilj.10.2021.08.10.18.04.25; Tue, 10 Aug 2021 18:04:37 -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 S235906AbhHKBDB (ORCPT + 99 others); Tue, 10 Aug 2021 21:03:01 -0400 Received: from mail-pj1-f43.google.com ([209.85.216.43]:53907 "EHLO mail-pj1-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231423AbhHKBDB (ORCPT ); Tue, 10 Aug 2021 21:03:01 -0400 Received: by mail-pj1-f43.google.com with SMTP id j1so790818pjv.3 for ; Tue, 10 Aug 2021 18:02:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=7NTG/vEAVW33QwSz6IbOwW37gh6DXGDFaf8xH4NDYdc=; b=YCIBIQs0R5CQeHwjbZ/VucHAloRKWZX6I6IQayJ2+cNNsdQKOcxC4E6H+RSPUqmenb 5wJpmd//VlAr2msc1SqYp/+jbNTSVRf5xOgANrIL+pjuL0zNenBDN+rrm8FJYaZ0xcQO jJCboetIfViQ4eLrjnWI4XTS9FKNJ7QNhBYZ0Xu9c9NAetpncX6iHmtaU19sxRwjEZnA UHywN6uexiTHA2l8ylVq+sETNc30t8jm7nHllccpC9d/Qwam3UbUC/bOTMdl9p4dc8Zy ONdRJ9/oBefpCY74mxuiVqjZgkArS5ounvjXme4VzJEWfk16sESRIT3YqOltSh7A0pjg BeKw== X-Gm-Message-State: AOAM532wTlDQaC5j6Z0Vx/UgaaGYofG7PeVhjDf1giX8K4d69MA7IpBn 53bG4/IT7Ox9mKopeF7gejo= X-Received: by 2002:a63:83c7:: with SMTP id h190mr111482pge.51.1628643758343; Tue, 10 Aug 2021 18:02:38 -0700 (PDT) Received: from ?IPv6:2601:647:4802:9070:61e5:4b9f:b48a:e987? ([2601:647:4802:9070:61e5:4b9f:b48a:e987]) by smtp.gmail.com with ESMTPSA id y6sm23014351pjr.48.2021.08.10.18.02.36 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 10 Aug 2021 18:02:37 -0700 (PDT) Subject: Re: [PATCH] nvme-tcp: Do not reset transport on data digest errors To: Daniel Wagner Cc: linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org, Hannes Reinecke , yi.he@emc.com References: <20210805121541.77613-1-dwagner@suse.de> <47ef76c6-4430-ca24-405e-a226d4303a39@grimberg.me> <20210809090947.luoqaooi7gc6u6yu@carbon> From: Sagi Grimberg Message-ID: <2e91c065-d3c6-1bef-5906-1a4648368894@grimberg.me> Date: Tue, 10 Aug 2021 18:02:36 -0700 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: <20210809090947.luoqaooi7gc6u6yu@carbon> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Hi Sagi, > > On Fri, Aug 06, 2021 at 12:42:00PM -0700, Sagi Grimberg wrote: >>> @@ -89,6 +89,7 @@ struct nvme_tcp_queue { >>> size_t data_remaining; >>> size_t ddgst_remaining; >>> unsigned int nr_cqe; >>> + u16 status; >> >> Why is this a queue member and not a request member? > > I was not sure if the TCP transport specific error handling should > impact all other transport (size of struct request). Also I tried to > avoid accessing cachelines which are not already in use. Except this I > don't see there should be no problem to put this to struct request. It is the correct place, lets see that it doesn't increase the struct.