diff options
author | NeilBrown <[email protected]> | 2024-09-05 15:09:42 -0400 |
---|---|---|
committer | Anna Schumaker <[email protected]> | 2024-09-23 15:03:30 -0400 |
commit | 5e66d2d92a1c331ed86d943ce3703c654876b20a (patch) | |
tree | 6f0402617a4fbae3bdaafbfec0a390f019d48b84 /lib/crypto/mpi/mpi-sub-ui.c | |
parent | 71c61a0077eb11e8bcc4d03e92ebc0c16df46abe (diff) |
nfsd: factor out __fh_verify to allow NULL rqstp to be passed
__fh_verify() offers an interface like fh_verify() but doesn't require
a struct svc_rqst *, instead it also takes the specific parts as
explicit required arguments. So it is safe to call __fh_verify() with
a NULL rqstp, but the net, cred, and client args must not be NULL.
__fh_verify() does not use SVC_NET(), nor does the functions it calls.
Rather than using rqstp->rq_client pass the client and gssclient
explicitly to __fh_verify and then to nfsd_set_fh_dentry().
Lastly, it should be noted that the previous commit prepared for 4
associated tracepoints to only be used if rqstp is not NULL (this is a
stop-gap that should be properly fixed so localio also benefits from
the utility these tracepoints provide when debugging fh_verify
issues).
Signed-off-by: NeilBrown <[email protected]>
Co-developed-by: Mike Snitzer <[email protected]>
Signed-off-by: Mike Snitzer <[email protected]>
Signed-off-by: Chuck Lever <[email protected]>
Reviewed-by: Jeff Layton <[email protected]>
Signed-off-by: Anna Schumaker <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions