Skip to content

Commit 2391ca4

Browse files
committed
smb3: add one more dynamic tracepoint missing from strict fsync path
We didn't have a dynamic trace point for catching errors in file_write_and_wait_range error cases in cifs_strict_fsync. Since not all apps check for write behind errors, it can be important for debugging to be able to trace these error paths. Suggested-and-reviewed-by: Pavel Shilovsky <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent e3e056c commit 2391ca4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

fs/cifs/file.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2593,8 +2593,10 @@ int cifs_strict_fsync(struct file *file, loff_t start, loff_t end,
25932593
struct cifs_sb_info *cifs_sb = CIFS_SB(inode->i_sb);
25942594

25952595
rc = file_write_and_wait_range(file, start, end);
2596-
if (rc)
2596+
if (rc) {
2597+
trace_cifs_fsync_err(inode->i_ino, rc);
25972598
return rc;
2599+
}
25982600

25992601
xid = get_xid();
26002602

0 commit comments

Comments
 (0)