OSDN Git Service

9p: set readahead and io size according to maxsize
authorDominique Martinet <asmadeus@codewreck.org>
Thu, 4 Nov 2021 12:01:27 +0000 (21:01 +0900)
committerDominique Martinet <asmadeus@codewreck.org>
Thu, 4 Nov 2021 12:04:04 +0000 (21:04 +0900)
commitb1843d23854aeae95ce92a3432bc1bea4cdbb2e7
tree9c97c1632d43c1b30054418e6f78ae746e64697c
parent05f975cd6a0b35a0fba725250c7b7cdb680046fa
9p: set readahead and io size according to maxsize

having a readahead of 128k with a msize of 128k (with overhead) lead to
reading 124+4k everytime, making two roundtrips needlessly.

tune readahead according to msize when cache is enabled for better
performance

Link: http://lkml.kernel.org/r/20211104120323.2189376-1-asmadeus@codewreck.org
Signed-off-by: Dominique Martinet <asmadeus@codewreck.org>
fs/9p/vfs_super.c