]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Change the pNFS client so that it does not report an NFSERR_STALE from
authorRick Macklem <rmacklem@FreeBSD.org>
Fri, 13 Jul 2018 12:39:27 +0000 (12:39 +0000)
committerRick Macklem <rmacklem@FreeBSD.org>
Fri, 13 Jul 2018 12:39:27 +0000 (12:39 +0000)
commit83f526de6ad3134ee468a577fc43f3396845d8b7
tree354f00f48a46f583901f2208506cd82718f017e6
parentd92da7594102739c7786552c53e07e4ce3367f39
Change the pNFS client so that it does not report an NFSERR_STALE from
an I/O attempt on a DS to the server via 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 errrors 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 patch only affects behaviour of the pNFS client and only when using
Flexible File layouts.

MFC after: 2 weeks
sys/fs/nfsclient/nfs_clrpcops.c