commit | 03f2c02d8be76d2080c174cd65d2dfcbbf783708 | [log] [tgz] |
---|---|---|
author | Jaegeuk Kim <jaegeuk@kernel.org> | Mon Jan 14 10:42:11 2019 -0800 |
committer | Jaegeuk Kim <jaegeuk@kernel.org> | Mon Feb 04 08:55:34 2019 -0800 |
tree | c158cbf3adba51bcd4724e7f0e4cef75fb39b365 | |
parent | 2010987365ab3b381df20bb6f175b59551cfe67d [diff] |
f2fs: run discard jobs when put_super When we umount f2fs, we need to avoid long delay due to discard commands, which is actually taking tens of seconds, if storage is very slow on UNMAP. So, this patch introduces timeout-based work on it. By default, let me give 5 seconds for discard. Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>