Re: [f2fs-dev] [PATCH] f2fs: clear discard_wake earlier

2018-05-10 Thread Chao Yu
On 2018/5/8 17:51, Sheng Yong wrote: > If SBI_NEED_FSCK is set, discard_wake will never be cleared. As a > result, the condition of wait_event_interruptible_timeout() is always > true, which gets discard thread run too frequently. > > Signed-off-by: Sheng Yong Reviewed-by: Chao Yu Thanks, --

[f2fs-dev] [PATCH] f2fs: clear discard_wake earlier

2018-05-08 Thread Sheng Yong
If SBI_NEED_FSCK is set, discard_wake will never be cleared. As a result, the condition of wait_event_interruptible_timeout() is always true, which gets discard thread run too frequently. Signed-off-by: Sheng Yong --- fs/f2fs/segment.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-)