mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Kenta Akagi <k@mgml.me>
To: "Ing. Alfonso Kuen Arroyo" <gerencia@idkmanager.com>,
	Maurizio Lombardi <mlombard@arkamax.eu>
Cc: hch@lst.de, sagi@grimberg.me, kch@nvidia.com,
	linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3] nvmet-tcp: report a bounded MDTS instead of "no limit"
Date: Thu, 3 Dec 2026 04:21:31 +0900	[thread overview]
Message-ID: <8d84fe3f-1853-4ff3-99d7-72575f11672d@mgml.me> (raw)
In-Reply-To: <178982875024.43804.2680537645505838340@idkmanager.com>

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

  reply	other threads:[~2026-12-02 19:22 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20260828222356.1264-1-gerencia@idkmanager.com>
2026-08-29  1:39 ` [PATCH v2] " Alfonso Kuen
2026-08-30 21:00   ` Sagi Grimberg
2026-08-30 21:02     ` Sagi Grimberg
2026-08-31  0:51   ` [PATCH v3] " Alfonso Kuen
2026-09-01 14:06     ` Maurizio Lombardi
2026-09-19  3:00       ` Ing. Alfonso Kuen Arroyo
2026-09-19  7:53         ` Maurizio Lombardi
2026-09-19  7:57           ` Maurizio Lombardi
2026-09-19 14:39             ` Ing. Alfonso Kuen Arroyo
2026-12-02 19:21               ` Kenta Akagi [this message]
2026-12-03  4:10                 ` Ing. Alfonso Kuen Arroyo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8d84fe3f-1853-4ff3-99d7-72575f11672d@mgml.me \
    --to=k@mgml.me \
    --cc=gerencia@idkmanager.com \
    --cc=hch@lst.de \
    --cc=kch@nvidia.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-nvme@lists.infradead.org \
    --cc=mlombard@arkamax.eu \
    --cc=sagi@grimberg.me \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®