Skip to content

dprintk() cleanup (part 1)

[email protected] linux-nfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest29 of 34 patches 1 replyIn review

29 of 34 patches are in this archive. The cover letter announces 34.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/34NFS: Clean up do_callback_layoutrecall()fs/nfs/callback_proc.c+2 -90 replies
2/34NFS: Clean up nfs4_callback_layoutrecall()fs/nfs/callback_proc.c+1 -70 replies
3/34NFS: Remove extra dprintk()s from callback_proc.cfs/nfs/callback_proc.c+0 -220 replies
4/34NFS: Clean up decode_getattr_args()fs/nfs/callback_xdr.c+2 -50 replies
5/34NFS: Clean up decode_recall_args()fs/nfs/callback_xdr.c+4 -90 replies
6/34NFS: Clean up decode_layoutrecall_args()fs/nfs/callback_xdr.c+11 -270 replies
7/34NFS: Clean up decode_cb_sequence_args()fs/nfs/callback_xdr.c+5 -200 replies
8/34NFS: Clean up decode_notify_lock_args()fs/nfs/callback_xdr.c+2 -50 replies
9/34NFS: Clean up encode_cb_sequence_res()fs/nfs/callback_xdr.c+3 -50 replies
10/34NFS: Remove extra dprintk()s from callback_xdr.cfs/nfs/callback_xdr.c+0 -110 replies
11/34NFS: Clean up nfs_init_client()fs/nfs/client.c+7 -130 replies
12/34NFS: Clean up extra dprintk()s in client.cfs/nfs/client.c+3 -420 replies
13/34NFS: Remove nfs_direct_readpage_release()fs/nfs/direct.c+1 -110 replies
14/34NFS: Clean up nfs_direct_commit_complete()fs/nfs/direct.c+1 -80 replies
15/34NFS: Remove extra dprintk()s from namespace.cfs/nfs/namespace.c+8 -260 replies
16/34NFS: Clean up nfs42_layoutstat_done()fs/nfs/nfs42proc.c+0 -20 replies
17/34NFS: Clean up nfs4_match_clientids()fs/nfs/nfs4client.c+2 -170 replies
18/34NFS: Clean up nfs4_check_serverowner_minor_id()fs/nfs/nfs4client.c+1 -210 replies
19/34NFS: Create a common nfs4_match_client() functionfs/nfs/nfs4client.c+55 -640 replies
20/34NFS: Clean up nfs4_check_serverowner_major_id()fs/nfs/nfs4client.c+2 -110 replies
21/34NFS: Clean up nfs4_check_server_scope()fs/nfs/nfs4client.c+3 -120 replies
22/34NFS: Clean up nfs4_set_client()fs/nfs/nfs4client.c+4 -150 replies
23/34NFS: Clean up nfs4_init_server()fs/nfs/nfs4client.c+4 -120 replies
24/34NFS: Remove extra dprintk()s from nfs4client.cfs/nfs/nfs4client.c+10 -520 replies
25/34NFS: Clean up nfs4_get_rootfh()fs/nfs/nfs4getroot.c+0 -30 replies
26/34NFS: Remove extra dprintk()s from nfs4namespace.cfs/nfs/nfs4namespace.c+1 -60 replies
27/34NFS: Clean up nfs4_proc_bind_one_conn_to_session()fs/nfs/nfs4proc.c+4 -100 replies
28/34NFS: Clean up _nfs4_proc_exchange_id()fs/nfs/nfs4proc.c+3 -150 replies
29/34NFS: Clean up nfs4_proc_get_lease_time()fs/nfs/nfs4proc.c+3 -70 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/34] dprintk() cleanup (part 1)

From: Anna Schumaker <[email protected]>

We have around 750 dprintk()s in the NFS client alone, and many of these simply tell us when we're entering or leaving a function (usually both). This can create a lot of noise when you're trying to debug a single issues, and I think many dprintk()s can be cut out in favor of tracepoints or dynamic tracing through SystemTap.

This patch set does just that. I went through some of our files one by one and removed dprintk()s that seemed to be unnecessary. Occasionally this allowed me to refactor the surrounding code, so I tried to make individual patches for each function I refactored.

These patches make changes to the following files:
- callback_proc.c
- callback_xdr.c
- client.c
- direct.c
- namespace.c
- nfs42proc.c
- nfs4client.c
- nfs4getroot.c
- nfs4namespace.c
- nfs4proc.c

What does everybody think? Are any of these dprintk()s worth holding on to?

Thanks,
Anna

Anna Schumaker (34):
NFS: Clean up do_callback_layoutrecall()
NFS: Clean up nfs4_callback_layoutrecall()
NFS: Remove extra dprintk()s from callback_proc.c
NFS: Clean up decode_getattr_args()
NFS: Clean up decode_recall_args()
NFS: Clean up decode_layoutrecall_args()
NFS: Clean up decode_cb_sequence_args()
NFS: Clean up decode_notify_lock_args()
NFS: Clean up encode_cb_sequence_res()
NFS: Remove extra dprintk()s from callback_xdr.c
NFS: Clean up nfs_init_client()
NFS: Clean up extra dprintk()s in client.c
NFS: Remove nfs_direct_readpage_release()
NFS: Clean up nfs_direct_commit_complete()
NFS: Remove extra dprintk()s from namespace.c
NFS: Clean up nfs42_layoutstat_done()
NFS: Clean up nfs4_match_clientids()
NFS: Clean up nfs4_check_serverowner_minor_id()
NFS: Create a common nfs4_match_client() function
NFS: Clean up nfs4_check_serverowner_major_id()
NFS: Clean up nfs4_check_server_scope()
NFS: Clean up nfs4_set_client()
NFS: Clean up nfs4_init_server()
NFS: Remove extra dprintk()s from nfs4client.c
NFS: Clean up nfs4_get_rootfh()
NFS: Remove extra dprintk()s from nfs4namespace.c
NFS: Clean up nfs4_proc_bind_one_conn_to_session()
NFS: Clean up _nfs4_proc_exchange_id()
NFS: Clean up nfs4_proc_get_lease_time()
NFS: Clean up nfs41_proc_async_sequence()
NFS: Clean up nfs4_proc_sequence()
NFS: Clean up nfs41_proc_reclaim_complete()
NFS: Clean up nfs4_layoutget_handle_exception()
NFS: Remove extra dprintk()s from nfs4proc.c

 fs/nfs/callback_proc.c |  41 +------
 fs/nfs/callback_xdr.c  | 109 +++++--------------
 fs/nfs/client.c        |  65 ++----------
 fs/nfs/direct.c        |  21 +---
 fs/nfs/namespace.c     |  34 ++----
 fs/nfs/nfs42proc.c     |   2 -
 fs/nfs/nfs4client.c    | 283 ++++++++++++++-----------------------------------
 fs/nfs/nfs4getroot.c   |   3 -
 fs/nfs/nfs4namespace.c |   7 +-
 fs/nfs/nfs4proc.c      | 274 +++++++----------------------------------------
 10 files changed, 167 insertions(+), 672 deletions(-)
Signature · 1 line
2.12.2