mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-11-07 04:36:52 -10:00
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:
1 parent
62f54beab0
commit
3b0eacaed3
1 file changed
+1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user