From bd3a7f13485c4986d9c16245b9fc76b6734d06cf Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Tue, 23 Jul 2024 13:37:00 +0200 Subject: [PATCH] 6.6-stable patches added patches: cifs-fix-noisy-message-on-copy_file_range.patch --- ...fix-noisy-message-on-copy_file_range.patch | 36 +++++++++++++++++++ queue-6.6/series | 1 + 2 files changed, 37 insertions(+) create mode 100644 queue-6.6/cifs-fix-noisy-message-on-copy_file_range.patch 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 index 00000000000..e76f435f463 --- /dev/null +++ b/queue-6.6/cifs-fix-noisy-message-on-copy_file_range.patch @@ -0,0 +1,36 @@ +From ae4ccca47195332c69176b8615c5ee17efd30c46 Mon Sep 17 00:00:00 2001 +From: Steve French +Date: Wed, 17 Jul 2024 00:42:22 -0500 +Subject: cifs: fix noisy message on copy_file_range + +From: Steve French + +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 +Signed-off-by: Steve French +Signed-off-by: Greg Kroah-Hartman +--- + 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; + } + diff --git a/queue-6.6/series b/queue-6.6/series index 589202ba2eb..892c754d840 100644 --- a/queue-6.6/series +++ b/queue-6.6/series @@ -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 -- 2.47.3