]> git.baikalelectronics.ru Git - kernel.git/commit
smb3: add trace point for SMB2_set_eof
authorSteve French <stfrench@microsoft.com>
Thu, 16 Jun 2022 03:40:23 +0000 (22:40 -0500)
committerSteve French <stfrench@microsoft.com>
Thu, 16 Jun 2022 23:07:10 +0000 (18:07 -0500)
commit4d3edd32eec49fc688fc70066dc731e2da6567e2
tree7b6a7c54ee5461300c25c0f3a23393291c4e7ffa
parent71374b58ebc7666369d670c06d1176f81c437c59
smb3: add trace point for SMB2_set_eof

In order to debug problems with file size being reported incorrectly
temporarily (in this case xfstest generic/584 intermittent failure)
we need to add trace point for the non-compounded code path where
we set the file size (SMB2_set_eof).  The new trace point is:
   "smb3_set_eof"

Here is sample output from the tracepoint:

            TASK-PID     CPU#  |||||  TIMESTAMP  FUNCTION
              | |         |   |||||     |         |
          xfs_io-75403   [002] ..... 95219.189835: smb3_set_eof: xid=221 sid=0xeef1cbd2 tid=0x27079ee6 fid=0x52edb58c offset=0x100000
 aio-dio-append--75418   [010] ..... 95219.242402: smb3_set_eof: xid=226 sid=0xeef1cbd2 tid=0x27079ee6 fid=0xae89852d offset=0x0

Reviewed-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/smb2pdu.c
fs/cifs/trace.h