summaryrefslogtreecommitdiff
path: root/fs/f2fs/f2fs.h
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2016-05-23 22:04:56 +0300
committerJaegeuk Kim <jaegeuk@kernel.org>2016-06-03 04:05:15 +0300
commit0a87f664d1ad29cc4712303d2142fe386368f07d (patch)
tree5ff4b60d0a2e18232b34c60321ee30212a847907 /fs/f2fs/f2fs.h
parent6d94c74ab85fe70dc1ac29b1ffc55cf23b3cf3f9 (diff)
downloadlinux-0a87f664d1ad29cc4712303d2142fe386368f07d.tar.xz
f2fs: detect congestion of flush command issues
If flush commands do not incur any congestion, we don't need to throw that to dispatching queue which causes unnecessary latency. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/f2fs.h')
-rw-r--r--fs/f2fs/f2fs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h
index bf1c8b0ef6c7..f02a3572fff3 100644
--- a/fs/f2fs/f2fs.h
+++ b/fs/f2fs/f2fs.h
@@ -603,6 +603,7 @@ struct flush_cmd {
struct flush_cmd_control {
struct task_struct *f2fs_issue_flush; /* flush thread */
wait_queue_head_t flush_wait_queue; /* waiting queue for wake-up */
+ atomic_t submit_flush; /* # of issued flushes */
struct llist_head issue_list; /* list for command issue */
struct llist_node *dispatch_list; /* list for command dispatch */
};