mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-06 00:39:48 +00:00
f2fs: blk_finish_plug of submit_bio in lfs mode
Expand the blk_finish_plug action from blkzoned to normal lfs mode, since plug will cause the out-of-order IO submission, which is not friendly to flash in lfs mode. Signed-off-by: Yunlong Song <yunlong.song@huawei.com> Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
parent
3611ce9911
commit
66415cee3d
1 changed files with 1 additions and 1 deletions
|
@ -264,7 +264,7 @@ static inline void __submit_bio(struct f2fs_sb_info *sbi,
|
||||||
if (type != DATA && type != NODE)
|
if (type != DATA && type != NODE)
|
||||||
goto submit_io;
|
goto submit_io;
|
||||||
|
|
||||||
if (f2fs_sb_has_blkzoned(sbi->sb) && current->plug)
|
if (test_opt(sbi, LFS) && current->plug)
|
||||||
blk_finish_plug(current->plug);
|
blk_finish_plug(current->plug);
|
||||||
|
|
||||||
start = bio->bi_iter.bi_size >> F2FS_BLKSIZE_BITS;
|
start = bio->bi_iter.bi_size >> F2FS_BLKSIZE_BITS;
|
||||||
|
|
Loading…
Reference in a new issue