]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC: r317465
authorrmacklem <rmacklem@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 10 May 2017 01:39:21 +0000 (01:39 +0000)
committerrmacklem <rmacklem@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 10 May 2017 01:39:21 +0000 (01:39 +0000)
commit0ce3456c6b4bf63e84573708dd7e82622bd0d70b
tree09228c4a5313391ddb8b719e3cfb5c6d8537ae32
parentd99fc6e7eabe4ef052116084bfd9af31f775a18b
MFC: r317465
Fix handling of a NFSv4.1 callback reply from the session cache.

The nfsv4_seqsession() call returns NFSERR_REPLYFROMCACHE when it has a
reply in the session, due to a requestor retry. The code erroneously
assumed a return of 0 for this case. This patch fixes this and adds
a KASSERT(). This would be an extremely rare occurrence. It was found
during code inspection during the pNFS server development.

git-svn-id: svn://svn.freebsd.org/base/stable/10@318128 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/fs/nfsclient/nfs_clstate.c