From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=133.167.8.150 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796239335; b=M2LLmg/uCGqiu7WH/hTGKc5DYhJpmq48AY3SxEXZgdedh9ncXAgqGCeHb7zusvR7pXaX JR3E77aDMCi9tm+aGtPEdfuWYlNNvaXKlhJpXtNaf0aODNexS0+L7Yyo+dcnAE0RvYuto HqhWJ9OBUAwh+d99SiXjqYoKxJbcRPv5fi+qgUdUCO5x845bSr5ViSqbQ2V7QkCowl1Ee gq/QRL+CSwhvnFd58qVFOVbEFwthyRYQ2ognQ0mRJKTxZwNStvY7vQw6NYNFavL8J8zQc GY6LQ2bDiPrvh3rbRWBBLN5Z4reNnf0MmhLWcCB7GP/x3AhvUquhkjqICM+svLFxc5A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796239335; h=DMARC-Filter:Received:DKIM-Signature:Message-ID:Date:MIME-Version: User-Agent:Subject:To:Cc:References:Content-Language:From:In-Reply-To: Content-Type:Content-Transfer-Encoding; bh=YCg9fhEmWjr9zo82Ip3ik5gU42dzbjnxuD4B+WYbuRc=; b=5oTWeD8LkhZZoIETF8l2ilxjgeI3YVspczgocRSkulUBEm9uy/kOw9PXNqeBpaRXpSOO fWtCoRq76eMES7U79D8jeHGrpfa/+D5Y+fDeouR290WG6HfzvtoA0KiqtBHK8woVDo32Q PJQ2IjDcKwPKjVxagU7+Gx9EJ2ZQPocKT+WLVM2sdcuqgUTn7kG4EtXQmbeM+TzEBg3ay S4bJOYJrBmyagVC7GDrRciDytcUajNXedybNCS4yakHbHHy1FqAc5YArsP0N2acuPz42w f5tz9KhFMbJnYpQ1jwiClOZqNNnFO9DhCi4c54Gi2Z5MpBVIBpRDWofzDgBVw4lC2sQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=mgml.me; spf=pass smtp.mailfrom=mgml.me; dkim=pass header.d=mgml.me header.i=@mgml.me header.a=rsa-sha256 header.s=rs20250315 header.b=tcP69FXP; arc=none smtp.remote-ip=133.167.8.150 Received: from www5210.sakura.ne.jp (www5210.sakura.ne.jp [133.167.8.150]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5659E606A322 for ; Wed, 2 Dec 2026 19:22:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 5659E606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=mgml.me Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mgml.me Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mgml.me header.i=@mgml.me header.a=rsa-sha256 header.s=rs20250315 header.b=tcP69FXP 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-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list 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 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