Page MenuHomeFreeBSD

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

Authored by kib on Jan 23 2021, 10:54 AM.
Tags
None
Referenced Files
F159447229: D28306.diff
Sun, Jun 14, 6:09 AM
Unknown Object (File)
Thu, Jun 11, 8:59 PM
Unknown Object (File)
Mon, Jun 8, 3:33 AM
Unknown Object (File)
Mon, May 25, 3:45 AM
Unknown Object (File)
Sun, May 24, 8:41 PM
Unknown Object (File)
Wed, May 20, 7:54 PM
Unknown Object (File)
Fri, May 15, 7:40 PM
Unknown Object (File)
Fri, May 15, 7:40 PM
Subscribers

Details

Summary

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.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kib requested review of this revision.Jan 23 2021, 10:54 AM
kib created this revision.

I ran the 29 NFS tests I have with D28306.82766.diff. This was a 2 1/2 hour test.
No problems seen.

Looks fine to me, although I'll admit that I
do not really understand the vnode_pager_setsize()
stuff well enough to say whether or not this is correct?

This revision is now accepted and ready to land.Jan 23 2021, 2:49 PM