Patch "splice: don't call file_accessed in copy_splice_read" has been added to the 6.4-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    splice: don't call file_accessed in copy_splice_read

to the 6.4-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     splice-don-t-call-file_accessed-in-copy_splice_read.patch
and it can be found in the queue-6.4 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 5261ba4375ba1c706a3075fce5020f0626fc3a61
Author: Christoph Hellwig <hch@xxxxxx>
Date:   Wed Jun 14 16:03:38 2023 +0200

    splice: don't call file_accessed in copy_splice_read
    
    [ Upstream commit 0b24be4691c9e6ea13ca70050d42a9f9032fa788 ]
    
    copy_splice_read calls into ->read_iter to read the data, which already
    calls file_accessed.
    
    Fixes: 33b3b041543e ("splice: Add a func to do a splice from an O_DIRECT file without ITER_PIPE")
    Signed-off-by: Christoph Hellwig <hch@xxxxxx>
    Reviewed-by: Johannes Thumshirn <johannes.thumshirn@xxxxxxx>
    Reviewed-by: Christian Brauner <brauner@xxxxxxxxxx>
    Reviewed-by: David Howells <dhowells@xxxxxxxxxx>
    Link: https://lore.kernel.org/r/20230614140341.521331-2-hch@xxxxxx
    Signed-off-by: Jens Axboe <axboe@xxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/fs/splice.c b/fs/splice.c
index 3e06611d19ae5..030e162985b5d 100644
--- a/fs/splice.c
+++ b/fs/splice.c
@@ -355,7 +355,6 @@ ssize_t direct_splice_read(struct file *in, loff_t *ppos,
 		reclaim -= ret;
 		remain = ret;
 		*ppos = kiocb.ki_pos;
-		file_accessed(in);
 	} else if (ret < 0) {
 		/*
 		 * callers of ->splice_read() expect -EAGAIN on



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux