]> git.dujemihanovic.xyz Git - linux.git/commit
nfsd: don't assume copy notify when preprocessing the stateid
authorSagi Grimberg <sagi@grimberg.me>
Wed, 24 Jul 2024 17:01:37 +0000 (10:01 -0700)
committerChuck Lever <chuck.lever@oracle.com>
Fri, 20 Sep 2024 23:31:03 +0000 (19:31 -0400)
commit11673b2a917d2351d8e29d4788a129c973852215
treed7d0b374e167301557143382fa48b8f03988f2c2
parent3391fc92db8e761f1a2df5612fcb999dac6bc00a
nfsd: don't assume copy notify when preprocessing the stateid

Move the stateid handling to nfsd4_copy_notify.
If nfs4_preprocess_stateid_op did not produce an output stateid, error out.

Copy notify specifically does not permit the use of special stateids,
so enforce that outside generic stateid pre-processing.

Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Olga Kornievskaia <aglo@umich.edu>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/nfs4proc.c
fs/nfsd/nfs4state.c