]> git.baikalelectronics.ru Git - kernel.git/commit
NFSv4.1: RECLAIM_COMPLETE must handle EACCES
authorZhang Xianwei <zhang.xianwei8@zte.com.cn>
Wed, 27 Jul 2022 10:01:07 +0000 (18:01 +0800)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 27 Jul 2022 14:00:52 +0000 (10:00 -0400)
commit87810bc00400f486583e158f2c389c31aecbf3e1
treec5d8b22b3467ceca2e8765da081e050870b2dd76
parent6f652e9cce444b2bd6875cbaed75217df5d98dc9
NFSv4.1: RECLAIM_COMPLETE must handle EACCES

A client should be able to handle getting an EACCES error while doing
a mount operation to reclaim state due to NFS4CLNT_RECLAIM_REBOOT
being set. If the server returns RPC_AUTH_BADCRED because authentication
failed when we execute "exportfs -au", then RECLAIM_COMPLETE will go a
wrong way. After mount succeeds, all OPEN call will fail due to an
NFS4ERR_GRACE error being returned. This patch is to fix it by resending
a RPC request.

Signed-off-by: Zhang Xianwei <zhang.xianwei8@zte.com.cn>
Signed-off-by: Yi Wang <wang.yi59@zte.com.cn>
Fixes: 86275f18426c ("NFSv4: Kill nfs4_async_handle_error() abuses by NFSv4.1")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/nfs4proc.c