File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -1287,6 +1287,7 @@ static void nfs4_put_copy(struct nfsd4_copy *copy)
12871287
12881288static void nfsd4_stop_copy (struct nfsd4_copy * copy )
12891289{
1290+ trace_nfsd_copy_async_cancel (copy );
12901291 if (!test_and_set_bit (NFSD4_COPY_F_STOPPED , & copy -> cp_flags ))
12911292 kthread_stop (copy -> copy_task );
12921293 nfs4_put_copy (copy );
Original file line number Diff line number Diff line change @@ -2244,7 +2244,7 @@ TRACE_EVENT(nfsd_copy_done,
22442244 )
22452245);
22462246
2247- TRACE_EVENT ( nfsd_copy_async_done ,
2247+ DECLARE_EVENT_CLASS ( nfsd_copy_async_done_class ,
22482248 TP_PROTO (
22492249 const struct nfsd4_copy * copy
22502250 ),
@@ -2313,6 +2313,15 @@ TRACE_EVENT(nfsd_copy_async_done,
23132313 )
23142314);
23152315
2316+ #define DEFINE_COPY_ASYNC_DONE_EVENT (name ) \
2317+ DEFINE_EVENT(nfsd_copy_async_done_class, \
2318+ nfsd_copy_async_##name, \
2319+ TP_PROTO(const struct nfsd4_copy *copy), \
2320+ TP_ARGS(copy))
2321+
2322+ DEFINE_COPY_ASYNC_DONE_EVENT (done );
2323+ DEFINE_COPY_ASYNC_DONE_EVENT (cancel );
2324+
23162325#endif /* _NFSD_TRACE_H */
23172326
23182327#undef TRACE_INCLUDE_PATH
You can’t perform that action at this time.
0 commit comments