Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp4328226pxt; Wed, 11 Aug 2021 03:35:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxHc8jm7CAvAGYGERozqk6Ir2rfCHEVN31i6NNCVSqun1fYQ2ar7Ncnwd+ndXsViBMC71bi X-Received: by 2002:a05:6402:40d4:: with SMTP id z20mr971923edb.314.1628678106131; Wed, 11 Aug 2021 03:35:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628678106; cv=none; d=google.com; s=arc-20160816; b=DbFqzLyomooZdmWUvpbtsVp1ztcV0H/EHb1k1zMGzbXjII3JOu8l08iyZguU3bOUPW OAyQzAI5NAhHKxvtnDjkv5+REXrNa6u4nyWQgfpImpPVAVUBDvVoq15OpEeReYU+4t6p fmCcmx82f6cOow28ztbKrQpo4i4HLo9TQLWJUyvHOXLnJTmuFqPaOCgF/qqIhkpIfXdw 7AKkbJnHhPy87yJ3YPbbWElLPAmVsajLl7QvHaWWxKyj6WnJ0CU7AjzTzdPImxth4xQy 8sPLSYNLSzPIYFIkY8lCnW7BtDUE2Cip1RblLHmBXX6LBk9kLwmD28kGsZ96ps2Qtd40 uNhA== 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:dkim-signature :dkim-signature; bh=KpLDPZd/N2/VcLHworm+Mh4R910b9m4Ub0D/eTKpZ2c=; b=Z8TSQh60tyVjFqcFF1piVwp6vDDpMF2QYboQ7jQRUcUgqA0aC/XmozwOyiIeG++vZn KILAiVGOtI73RsruthEQa0DeYAe5C59KDgRE7bO//eh1ZqHMy14N7PYxf8rV7DOrbWlf p+qmkLrFlHlIUl60P9VB9bD8IvXVsgxJvVgt6Qkk065pAs7/r+WFST+9CsRCxmEugRua hFdTXzPUs34+AYA3KdEfRf6nD9UN+UnRyOTNbQZCpB8RlNHa7sd6dXNAq/4T5GkDX++o 5YCcRG2lj5Vk2J0YZbb/Ha953pi/bhY/mLk7asCAIlsW7i6UwzTSfs/0xLatV5VhTT7U JjiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=VbVynxJn; dkim=neutral (no key) header.i=@suse.de; 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 v2si25225216edc.86.2021.08.11.03.34.43; Wed, 11 Aug 2021 03:35:06 -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=VbVynxJn; dkim=neutral (no key) header.i=@suse.de; 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 S237159AbhHKKcL (ORCPT + 99 others); Wed, 11 Aug 2021 06:32:11 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:48730 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236861AbhHKKcK (ORCPT ); Wed, 11 Aug 2021 06:32:10 -0400 Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (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-out1.suse.de (Postfix) with ESMTPS id 89530221D2; Wed, 11 Aug 2021 10:31:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1628677906; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=KpLDPZd/N2/VcLHworm+Mh4R910b9m4Ub0D/eTKpZ2c=; b=VbVynxJn3fn2qBccx43dG5RN+NVZw3aHD5cjvxnZ5rKYdjuQsvDMB3Al86aCK7tCfP0AKK /ovX2lHHToJW+qgSviR6HEyPdpUKbZZEoiNVvrX33cP5rJI6ZDcleJStVKwc5K+MjUABhL tIDHI5P5plKELLqIZyr0tVo3bhFcrCk= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1628677906; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=KpLDPZd/N2/VcLHworm+Mh4R910b9m4Ub0D/eTKpZ2c=; b=9pnAPYyX7BnYcKFd8cyLrvcHazFsOhpr/jdI5zJ8HW59Gk4gssjbYPKcor7+nnfKHMagHd rK0PknAIjWdbsRCw== Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (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 imap1.suse-dmz.suse.de (Postfix) with ESMTPS id 78E2E131F5; Wed, 11 Aug 2021 10:31:46 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap1.suse-dmz.suse.de with ESMTPSA id IpSAHRKnE2EQEAAAGKfGzw (envelope-from ); Wed, 11 Aug 2021 10:31:46 +0000 Date: Wed, 11 Aug 2021 12:31:46 +0200 From: Daniel Wagner To: Sagi Grimberg Cc: linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org, Hannes Reinecke , yi.he@emc.com Subject: Re: [PATCH] nvme-tcp: Do not reset transport on data digest errors Message-ID: <20210811103146.ytqj5mqpioiba56x@carbon.lan> References: <20210805121541.77613-1-dwagner@suse.de> <47ef76c6-4430-ca24-405e-a226d4303a39@grimberg.me> <20210809090947.luoqaooi7gc6u6yu@carbon> <2e91c065-d3c6-1bef-5906-1a4648368894@grimberg.me> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2e91c065-d3c6-1bef-5906-1a4648368894@grimberg.me> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 10, 2021 at 06:02:36PM -0700, Sagi Grimberg wrote: > > > 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. It should not according pahole: /* XXX 7 bytes hole, try to pack */ void * pdu; /* 144 8 */ int pdu_remaining; /* 152 4 */ int pdu_offset; /* 156 4 */ size_t data_remaining; /* 160 8 */ size_t ddgst_remaining; /* 168 8 */ unsigned int nr_cqe; /* 176 4 */ u16 status; /* 180 2 */ /* XXX 2 bytes hole, try to pack */ Daniel