nvmf: Limit namespace character device I/O size

Set si_iosize_max for namespace character devices matching the fix
from commit 125ec0e307.

Sponsored by:	Chelsio Communications
This commit is contained in:
John Baldwin committed 2026-10-08 11:24:45 -04:00
1 parent 62f54beab0
commit 3b0eacaed3
1 file changed
+1
+1
View File
@@ -398,6 +398,7 @@ nvmf_init_ns(struct nvmf_softc *sc, uint32_t id,
device_get_nameunit(sc->dev), id);
ns->cdev->si_flags |= SI_UNMAPPED;
ns->cdev->si_iosize_max = sc->max_xfer_size;
return (ns);
fail: