]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC: r317465
authorrmacklem <rmacklem@FreeBSD.org>
Wed, 10 May 2017 01:28:58 +0000 (01:28 +0000)
committerrmacklem <rmacklem@FreeBSD.org>
Wed, 10 May 2017 01:28:58 +0000 (01:28 +0000)
commit411e7fee1b56c4c65f802efd2ef8f11f365c0ab5
tree068d3e7ffaa237eabf9a6312c71313338b42226e
parent9498b1d27a47f26ccd6e4233ad479503fc73c207
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.
sys/fs/nfsclient/nfs_clstate.c