]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
6.6-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Jul 2024 11:37:00 +0000 (13:37 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Jul 2024 11:37:00 +0000 (13:37 +0200)
added patches:
cifs-fix-noisy-message-on-copy_file_range.patch

queue-6.6/cifs-fix-noisy-message-on-copy_file_range.patch [new file with mode: 0644]
queue-6.6/series

diff --git a/queue-6.6/cifs-fix-noisy-message-on-copy_file_range.patch b/queue-6.6/cifs-fix-noisy-message-on-copy_file_range.patch
new file mode 100644 (file)
index 0000000..e76f435
--- /dev/null
@@ -0,0 +1,36 @@
+From ae4ccca47195332c69176b8615c5ee17efd30c46 Mon Sep 17 00:00:00 2001
+From: Steve French <stfrench@microsoft.com>
+Date: Wed, 17 Jul 2024 00:42:22 -0500
+Subject: cifs: fix noisy message on copy_file_range
+
+From: Steve French <stfrench@microsoft.com>
+
+commit ae4ccca47195332c69176b8615c5ee17efd30c46 upstream.
+
+There are common cases where copy_file_range can noisily
+log "source and target of copy not on same server"
+e.g. the mv command across mounts to two different server's shares.
+Change this to informational rather than logging as an error.
+
+A followon patch will add dynamic trace points e.g. for
+cifs_file_copychunk_range
+
+Cc: stable@vger.kernel.org
+Reviewed-by: Shyam Prasad N <sprasad@microsoft.com>
+Signed-off-by: Steve French <stfrench@microsoft.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ fs/smb/client/cifsfs.c |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/fs/smb/client/cifsfs.c
++++ b/fs/smb/client/cifsfs.c
+@@ -1404,7 +1404,7 @@ ssize_t cifs_file_copychunk_range(unsign
+       target_tcon = tlink_tcon(smb_file_target->tlink);
+       if (src_tcon->ses != target_tcon->ses) {
+-              cifs_dbg(VFS, "source and target of copy not on same server\n");
++              cifs_dbg(FYI, "source and target of copy not on same server\n");
+               goto out;
+       }
index 589202ba2ebf99450a3a97c266beee93408c77da..892c754d840195f43174e0dc39cdc0a75695b3f2 100644 (file)
@@ -117,3 +117,4 @@ hfsplus-fix-uninit-value-in-copy_name.patch
 selftests-bpf-extend-tcx-tests-to-cover-late-tcx_ent.patch
 spi-mux-set-ctlr-bits_per_word_mask.patch
 alsa-hda-use-imply-for-suggesting-config_serial_mult.patch
+cifs-fix-noisy-message-on-copy_file_range.patch