Re: [f2fs-dev] [PATCH] f2fs: avoid readahead race condition

2020-06-27 Thread Chao Yu
On 2020/6/24 9:21, Jaegeuk Kim wrote: > If two readahead threads having same offset enter in readpages, every read > IOs are split and issued to the disk which giving lower bandwidth. > > This patch tries to avoid redundant readahead calls. > > Signed-off-by: Jaegeuk Kim > --- > fs/f2fs/data.c

[PATCH] f2fs: avoid readahead race condition

2020-06-23 Thread Jaegeuk Kim
If two readahead threads having same offset enter in readpages, every read IOs are split and issued to the disk which giving lower bandwidth. This patch tries to avoid redundant readahead calls. Signed-off-by: Jaegeuk Kim --- fs/f2fs/data.c | 15 +++ fs/f2fs/f2fs.h | 1 + fs/f2fs