OSDN Git Service

nfsd: ignore requests to disable unsupported versions
authorJeff Layton <jlayton@kernel.org>
Tue, 18 Oct 2022 11:47:54 +0000 (07:47 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 28 Nov 2022 17:54:44 +0000 (12:54 -0500)
commit8e823bafff2308753d430566256c83d8085952da
treeaf7565e53b37fd2ab010d7c7193e451663dc56f8
parent841fd0a3cb490eae5dfd262eccb8c8b11d57f8b8
nfsd: ignore requests to disable unsupported versions

The kernel currently errors out if you attempt to enable or disable a
version that it doesn't recognize. Change it to ignore attempts to
disable an unrecognized version. If we don't support it, then there is
no harm in doing so.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Tom Talpey <tom@talpey.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/nfsctl.c