Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2EDC4606A322 for ; Wed, 2 Dec 2026 19:21:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=H5X08w23; dkim=pass (2048-bit key, unprotected) header.d=mgml.me header.i=@mgml.me header.a=rsa-sha256 header.s=rs20250315 header.b=tcP69FXP DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Unsubscribe-Post: List-Owner; bh=YCg9fhEmWjr9zo82Ip3ik5gU42dzbjnxuD4B+WYbuRc=; b=H5X08w23J+ewwm Z//ee6mIBaUiQNVQs9UbKNdm9FpvAQRcLe8LqD1I7lwSQKnBc9vU6uQ5JlQ58C1RoG8AKqN49NO2W R4Cyq2TSQ+tTHKE5EBTftCQ7R6NrWpimmGhpulbDSO8VnlgEUb9BsWYeL8aCWpIFbrCqClOwzoJzU erPbWM9Z2PXUnFTQgTwZ0/ksSxUmo6DNbMV8iFdxoC5GT+lg7oqsj8egOtN0iekZ3IGw15eGrpuBo hkyQsUh4SnZxH5or6IgVfkMAluXz7TVDRaSCt0HPqm95vJoiIPD8hQTftVJemtpUkRgufnFB1EkzF QD6B/Ho2s1zkM6jGkNEg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYpta-0000000Cccq-22Yi; Wed, 02 Dec 2026 19:21:38 +0000 Received: from www5210.sakura.ne.jp ([133.167.8.150]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYptX-0000000CccU-4C7Q for linux-nvme@lists.infradead.org; Wed, 02 Dec 2026 19:21:37 +0000 Received: from NEET ([104.28.236.130]) (authenticated bits=0) by www5210.sakura.ne.jp (8.16.1/8.16.1) with ESMTPSA id 6B2JLVSO026271 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 3 Dec 2026 04:21:31 +0900 (JST) (envelope-from k@mgml.me) DKIM-Signature: a=rsa-sha256; bh=YCg9fhEmWjr9zo82Ip3ik5gU42dzbjnxuD4B+WYbuRc=; c=relaxed/relaxed; d=mgml.me; h=From:Message-ID:To:Subject:Date; s=rs20250315; t=1796239291; v=1; b=tcP69FXPHxvq+/pjOdtYKer/kAdBOUfz2EjPSuGGgDYULMaXGDN4EUTR5Q4JC7g6 ds2CYulZvxq+KMqX4oUvizUZlMHVHcYH5PvaRl1Pbdv9LArN8IjENVnN1SDO55xm 7QtKjZ5lGpM3tgdJQQBYDki4mxSTFGMNGIrWp10zhR5gsc9ZltRCP/gbSaOgOSDA qWe08RwE7CTT9Dyz+KF2eXDx2lmLoMeDzXik1Q4khyV1xHIWf/wxZ+3WsAr54pZs TSLIAQnI0GpZbTQnPmmH/twoEo4hwgXX4vOttUcc5r9ZwdTYvTKLqa347OClnMzV Qy/xbzw5t5kL4ENnvU0hXA== Message-ID: <8d84fe3f-1853-4ff3-99d7-72575f11672d@mgml.me> Date: Thu, 3 Dec 2026 04:21:31 +0900 X-Archived-By: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3] nvmet-tcp: report a bounded MDTS instead of "no limit" To: "Ing. Alfonso Kuen Arroyo" , Maurizio Lombardi Cc: hch@lst.de, sagi@grimberg.me, kch@nvidia.com, linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org References: <178982875024.43804.2680537645505838340@idkmanager.com> Content-Language: en-US From: Kenta Akagi In-Reply-To: <178982875024.43804.2680537645505838340@idkmanager.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261202_112136_304244_C98DD8C5 X-CRM114-Status: UNSURE ( 8.74 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.1 (--) X-BeenThere: linux-nvme@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-nvme" X-Spam-Status: No, score=-7.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 Hi Alfonso and Maurizio, Thank you both for working on this issue. We encountered I/O errors when using a recent kernel as an NVMe/TCP target, which we suspect may be related to the issue discussed here. Is there any ongoing work on this? If helpful, I'd be happy to send two patches: 1. Implement nvmet_tcp_get_mdts() with NVMET_TCP_MAX_MDTS=10 (4 MiB), matching the existing command-length limit. 2. Update the NVMET_TCP_MAXH2CDATA comment from “16M” to “4 MiB”. Setting MDTS to 10 would fix our failures and avoid the 2 MiB case discussed in the thread: a command exceeding the proposed 1 MiB MDTS but still being accepted by the 4 MiB guard. General MDTS enforcement could follow separately. An LLM-assisted review also suggested that passthrough MDTS calculation may bypass this callback. However, I haven't reproduced that case, so I'd leave that path unchanged for now. Would this be a helpful way forward? I'd be glad to coordinate with your plans. Thanks, akagi