HomeFreeBSD

nfs client: block vnode_pager_setsize() calls from nfscl_loadattrcache in…

Description

nfs client: block vnode_pager_setsize() calls from nfscl_loadattrcache in nfs_write

Otherwise writing thread might wait on sbusy state of the pages which were
busied by itself, similarly to nfs_read(). But also we need to clear
NVNSETSZKSIP flag possibly set by ncl_pager_setsize(), to not undo
extension done by write.

Reported by: bdrewery
Reviewed by: rmacklem
Tested by: pho
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D28306

Details

Provenance
kibAuthored on Jan 22 2021, 9:47 PM
Reviewer
rmacklem
Differential Revision
D28306: nfs client: block vnode_pager_setsize() calls from nfscl_loadattrcache in nfs_write
Parents
R10:3110d4ebd6c0: zfs: add support for lockless symlink lookup
Branches
Unknown
Tags
Unknown