]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Change the pNFS server so that it does not disable a mirrored DS for
authorrmacklem <rmacklem@FreeBSD.org>
Fri, 6 Jul 2018 19:18:45 +0000 (19:18 +0000)
committerrmacklem <rmacklem@FreeBSD.org>
Fri, 6 Jul 2018 19:18:45 +0000 (19:18 +0000)
commitf28840fbcf228f539ea50b25657b4f1e280f169e
tree881ca20fbb3512a4c4ccf04d775bd0a56310a40d
parentbc86284c7c16354d96241682a87824681a2935e8
Change the pNFS server so that it does not disable a mirrored DS for
an NFSERR_STALE error reported via a LayoutReturn.

The current FreeBSD client can generate these errors for an operational
DS while doing a recovery of a mirror after a mirrored DS has been repaired.
I am not sure why these errors occur, but my best current guess is a race
between the Layout Recall issued by the kernel code run from pnfsdscopymr(8)
and a Read operation on the DS for the file bing copied.
The errors are not fatal, since the client falls back on doing I/O through
the MDS, which can do the I/O successfully as a proxy. (The fact that the
MDS can do this indicates that the file does still exist on the functioning
DS.)
This change only affects the pNFS server and only when a client does a
LayoutReturn with the NFSERR_STALE error report.
sys/fs/nfsserver/nfs_nfsdstate.c