git: 3b0eacaed3cf - main - nvmf: Limit namespace character device I/O size
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 08 Oct 2026 15:24:59 UTC
The branch main has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=3b0eacaed3cf9157baf04ab11243aedf816ac976
commit 3b0eacaed3cf9157baf04ab11243aedf816ac976
Author: John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2026-10-08 15:24:45 +0000
Commit: John Baldwin <jhb@FreeBSD.org>
CommitDate: 2026-10-08 15:24:45 +0000
nvmf: Limit namespace character device I/O size
Set si_iosize_max for namespace character devices matching the fix
from commit 125ec0e30785bb0cbca7aa6c0b1a34b75e53078d.
Sponsored by: Chelsio Communications
---
sys/dev/nvmf/host/nvmf_ns.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sys/dev/nvmf/host/nvmf_ns.c b/sys/dev/nvmf/host/nvmf_ns.c
index 12db071b891b..12ef1390dd5d 100644
--- a/sys/dev/nvmf/host/nvmf_ns.c
+++ b/sys/dev/nvmf/host/nvmf_ns.c
@@ -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: