summaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2019-01-14 10:42:11 -0800
committerJaegeuk Kim <jaegeuk@kernel.org>2019-02-04 08:55:34 -0800
commit03f2c02d8be76d2080c174cd65d2dfcbbf783708 (patch)
treec158cbf3adba51bcd4724e7f0e4cef75fb39b365 /Documentation
parent2010987365ab3b381df20bb6f175b59551cfe67d (diff)
downloadlinux-stable-03f2c02d8be76d2080c174cd65d2dfcbbf783708.tar.gz
linux-stable-03f2c02d8be76d2080c174cd65d2dfcbbf783708.tar.bz2
linux-stable-03f2c02d8be76d2080c174cd65d2dfcbbf783708.zip
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>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/ABI/testing/sysfs-fs-f2fs7
1 files changed, 7 insertions, 0 deletions
diff --git a/Documentation/ABI/testing/sysfs-fs-f2fs b/Documentation/ABI/testing/sysfs-fs-f2fs
index a7ce33199457..91822ce25831 100644
--- a/Documentation/ABI/testing/sysfs-fs-f2fs
+++ b/Documentation/ABI/testing/sysfs-fs-f2fs
@@ -86,6 +86,13 @@ Description:
The unit size is one block, now only support configuring in range
of [1, 512].
+What: /sys/fs/f2fs/<disk>/umount_discard_timeout
+Date: January 2019
+Contact: "Jaegeuk Kim" <jaegeuk@kernel.org>
+Description:
+ Set timeout to issue discard commands during umount.
+ Default: 5 secs
+
What: /sys/fs/f2fs/<disk>/max_victim_search
Date: January 2014
Contact: "Jaegeuk Kim" <jaegeuk.kim@samsung.com>