Re: [PATCH v3] nvmet-tcp: report a bounded MDTS instead of "no limit"
From: Ing . Alfonso Kuen Arroyo
Date: Wed Dec 02 2026 - 23:10:20 EST
On Wed, Dec 02, 2026, Kenta Akagi wrote:
> Would this be a helpful way forward? I'd be glad to coordinate with
> your plans.
Hi Akagi,
Thanks for picking this up, and for the report from a recent-kernel
target.
Yes, please go ahead. MDTS=10 is the more coherent choice: it advertises
exactly what nvmet_tcp_map_data() already guarantees since commit
4a3f00262a04, so the 2 MiB gap Maurizio pointed out (advertised but not
enforced) goes away without waiting for a core check.
I picked 8 to match nvmet-rdma, and because on kernels predating that
bound a 32 MiB command reached sgl_alloc() as an order-6 allocation.
A 4 MiB command needs 1024 scatterlist entries, 32 KiB, an order-3
allocation, within PAGE_ALLOC_COSTLY_ORDER, so I don't expect that
failure mode to come back with 10.
Please consider my v3 superseded by your series. Sagi's Reviewed-by was
given for the value 8, so it shouldn't be carried over. I'm happy to
review it and to test it on a lab target with Proxmox VE initiators, and
the offer to send the core MDTS enforcement as a follow-up still stands
if that helps.
Thanks,
Alfonso