[f2fs-dev] [PATCH v4] f2fs: split discard command in prior to block layer

2018-08-06 Thread Chao Yu
Some devices has small max_{hw,}discard_sectors, so that in __blkdev_issue_discard(), one big size discard bio can be split into multiple small size discard bios, result in heavy load in IO scheduler and device, which can hang other sync IO for long time. Now, f2fs is trying to control discard com

[f2fs-dev] [PATCH] f2fs: support discard submission error injection

2018-08-06 Thread Chao Yu
This patch adds to support discard submission error injection for testing error handling of __submit_discard_cmd(). Signed-off-by: Chao Yu --- fs/f2fs/f2fs.h| 1 + fs/f2fs/segment.c | 8 fs/f2fs/super.c | 1 + 3 files changed, 10 insertions(+) diff --git a/fs/f2fs/f2fs.h b/fs/f2f

[f2fs-dev] [PATCH v5] f2fs: split discard command in prior to block layer

2018-08-06 Thread Chao Yu
From: Chao Yu Some devices has small max_{hw,}discard_sectors, so that in __blkdev_issue_discard(), one big size discard bio can be split into multiple small size discard bios, result in heavy load in IO scheduler and device, which can hang other sync IO for long time. Now, f2fs is trying to con