• David Howells's avatar
    cifs: Add a tracepoint to track credits involved in R/W requests · 519be989
    David Howells authored
    Add a tracepoint to track the credit changes and server in_flight value
    involved in the lifetime of a R/W request, logging it against the
    request/subreq debugging ID.  This requires the debugging IDs to be
    recorded in the cifs_credits struct.
    
    The tracepoint can be enabled with:
    
    	echo 1 >/sys/kernel/debug/tracing/events/cifs/smb3_rw_credits/enable
    
    Also add a three-state flag to struct cifs_credits to note if we're
    interested in determining when the in_flight contribution ends and, if so,
    to track whether we've decremented the contribution yet.
    Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
    Reviewed-by: default avatarPaulo Alcantara (Red Hat) <pc@manguebit.com>
    cc: Jeff Layton <jlayton@kernel.org>
    cc: linux-cifs@vger.kernel.org
    cc: netfs@lists.linux.dev
    cc: linux-fsdevel@vger.kernel.org
    Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
    519be989
file.c 87.8 KB