]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/nfs/callback.c
NFSv4: Retry the DELEGRETURN if the embedded GETATTR is rejected with EACCES
[karo-tx-linux.git] / fs / nfs / callback.c
index 532d8e242d4d76c44413d6c814c7548094614ebe..484bebc20bca6a502cc621106d7f34975b48dedc 100644 (file)
@@ -197,7 +197,7 @@ static int nfs_callback_up_net(int minorversion, struct svc_serv *serv,
        }
 
        ret = -EPROTONOSUPPORT;
-       if (minorversion == 0)
+       if (!IS_ENABLED(CONFIG_NFS_V4_1) || minorversion == 0)
                ret = nfs4_callback_up_net(serv, net);
        else if (xprt->ops->bc_up)
                ret = xprt->ops->bc_up(serv, net);