]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC: r309566
authorrmacklem <rmacklem@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 19 Dec 2016 22:28:28 +0000 (22:28 +0000)
committerrmacklem <rmacklem@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 19 Dec 2016 22:28:28 +0000 (22:28 +0000)
commitb964854066864ec6abca556eb5c3b5ad70e85ab6
tree051bd6327825cb1fdf4bd7d58aadd8453b7a3c13
parent19dd0bcf8a55a64356a9f0f195b99508c1c2292b
MFC: r309566
Fix the NFSv4.1 server for Open reclaim after a reboot.

The NFSv4.1 server failed to update the nfs-stablerestart file for
a client when the client was issued its first Open. As such, recovery
of Opens after a server reboot failed with NFSERR_NOGRACE.
This patch fixes this.
It also changes the code so that it malloc()'s the 1024 byte array
instead of allocating it on the kernel stack for both NFSv4.0 and NFSv4.1.
Note that this bug only affected NFSv4.1 and only when clients attempted
to reclaim Opens after a server reboot.

git-svn-id: svn://svn.freebsd.org/base/stable/10@310303 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/fs/nfsserver/nfs_nfsdstate.c