Linux NFS development
 help / color / mirror / Atom feed
* [PATCH 1/2] NFSD: initialize copy->cp_clp early in nfsd4_copy for use by trace point
@ 2023-08-30 23:46 Dai Ngo
  2023-08-30 23:46 ` [PATCH 2/2] NFSD: add trace points to track server copy progress Dai Ngo
  0 siblings, 1 reply; 4+ messages in thread
From: Dai Ngo @ 2023-08-30 23:46 UTC (permalink / raw)
  To: chuck.lever, jlayton; +Cc: linux-nfs

Prepare for adding server copy trace points.

Signed-off-by: Dai Ngo <dai.ngo@oracle.com>
---
 fs/nfsd/nfs4proc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/nfsd/nfs4proc.c b/fs/nfsd/nfs4proc.c
index 5ca748309c26..62f6aba6140b 100644
--- a/fs/nfsd/nfs4proc.c
+++ b/fs/nfsd/nfs4proc.c
@@ -1798,6 +1798,7 @@ nfsd4_copy(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate,
 	__be32 status;
 	struct nfsd4_copy *async_copy = NULL;
 
+	copy->cp_clp = cstate->clp;
 	if (nfsd4_ssc_is_inter(copy)) {
 		if (!inter_copy_offload_enable || nfsd4_copy_is_sync(copy)) {
 			status = nfserr_notsupp;
@@ -1812,7 +1813,6 @@ nfsd4_copy(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate,
 			return status;
 	}
 
-	copy->cp_clp = cstate->clp;
 	memcpy(&copy->fh, &cstate->current_fh.fh_handle,
 		sizeof(struct knfsd_fh));
 	if (nfsd4_copy_is_async(copy)) {
-- 
2.39.3


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-08-31 14:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-30 23:46 [PATCH 1/2] NFSD: initialize copy->cp_clp early in nfsd4_copy for use by trace point Dai Ngo
2023-08-30 23:46 ` [PATCH 2/2] NFSD: add trace points to track server copy progress Dai Ngo
2023-08-31  5:18   ` kernel test robot
2023-08-31 14:13   ` Chuck Lever

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox