HomeFreeBSD

subr_uio.c: Remove a KASSERT() for large NFS server I/O

Description

subr_uio.c: Remove a KASSERT() for large NFS server I/O

When the NFS server is set to allow an I/O size greater
than 1Mbyte (not allowed in FreeBSD's main yet), a
KASSERT() in allocuio() can fail when:
zfs_freebsd_write()->zfs_write()->zfs_uiocopy()
->cloneuio()->allocuio()
is called for a large NFS server write.

Since the userland API callers to allocuio() already
check that the size does not exceed UIO_MAXIOV,
there does not seem to be a need to a KASSERT()
here.

Removing the KASSERT() allows NFS server writes
of greater than 1Mbyte to work, once the NFS code
is patched to allow them.

Reviewed by: kib
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D57005

Details

Provenance
rmacklemAuthored on May 14 2026, 10:17 PM
Reviewer
kib
Differential Revision
D57005: subr_uio.c: Remove a KASSERT() to allow large NFS server I/O
Parents
rG4080419d9a2d: Cloud releases: More firstboot_pkg_upgrade
Branches
Unknown
Tags
Unknown