]> git.baikalelectronics.ru Git - kernel.git/commit
smb3: add dynamic trace point to trace when credits obtained
authorSteve French <stfrench@microsoft.com>
Mon, 19 Oct 2020 23:18:15 +0000 (18:18 -0500)
committerSteve French <stfrench@microsoft.com>
Tue, 20 Oct 2020 16:50:42 +0000 (11:50 -0500)
commit3f535a24b981e2cce9ed0429f9af932ef4437451
treeccff1a0a2a1dd876da6220d5395d13116a31f517
parent675864a7a2d1268f9254322e6e9a1f61be3e4056
smb3: add dynamic trace point to trace when credits obtained

SMB3 crediting is used for flow control, and it can be useful to
trace for problem determination how many credits were acquired
and for which operation.

Here is an example ("trace-cmd record -e *add_credits"):
cifsd-9522    [010] ....  5995.202712: smb3_add_credits:
server=localhost current_mid=0x12 credits=373 credits_to_add=10
cifsd-9522    [010] ....  5995.204040: smb3_add_credits:
server=localhost current_mid=0x15 credits=400 credits_to_add=30

Reviewed-by: Aurelien Aptel <aaptel@suse.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/smb2ops.c
fs/cifs/trace.h
fs/cifs/transport.c