[PATCH] nvmet-tcp: bound sgl->length check in nvmet_tcp_map_data()

Christoph Hellwig hch at lst.de
Wed Apr 8 23:08:35 PDT 2026


On Wed, Apr 08, 2026 at 08:30:12AM +0200, Maurizio Lombardi wrote:
> Personally, I would pick a default of 2 MiB, it should be large
> enough to avoid excessive splitting while still being reasonable from a
> memory perspective.
> 
> Sagi? Any thought on that?
> 
> I have seen a patch on this mailing list that makes mdts configurable
> via configfs, so in case of need a user could still change it
> to his preferred value.

Right now that just allows adjusting down, so picking the larger
value sounds sane.  We can still increase it later and/or allow
adjusting above the default to an upper cap if needed.




More information about the Linux-nvme mailing list