]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
nfsd: Make loop calling VOP_ALLOCATE() iterate until done
authorRick Macklem <rmacklem@FreeBSD.org>
Sun, 29 Aug 2021 23:46:27 +0000 (16:46 -0700)
committerRick Macklem <rmacklem@FreeBSD.org>
Sun, 29 Aug 2021 23:46:27 +0000 (16:46 -0700)
commit13914e51eb8de6fe9f627c9c1d48c09880b2607e
tree29af348854169c771868717e9ea8e41cccc595e3
parentd98954e229812eee2fa6bf97714fecbbdcc56e4c
nfsd: Make loop calling VOP_ALLOCATE() iterate until done

The NFSv4.2 Deallocate operation loops on VOP_DEALLOCATE()
while progress is being made (remaining length decreasing).
This patch changes the loop on VOP_ALLOCATE() for the NFSv4.2
Allocate operation do the same, instead of stopping after
an arbitrary 20 iterations.

MFC after: 2 weeks
sys/fs/nfsserver/nfs_nfsdport.c