diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-05-23 12:04:56 -0700 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2016-06-02 18:05:15 -0700 |
commit | 0a87f664d1ad29cc4712303d2142fe386368f07d (patch) | |
tree | 5ff4b60d0a2e18232b34c60321ee30212a847907 /fs/f2fs/f2fs.h | |
parent | 6d94c74ab85fe70dc1ac29b1ffc55cf23b3cf3f9 (diff) | |
download | op-kernel-dev-0a87f664d1ad29cc4712303d2142fe386368f07d.zip op-kernel-dev-0a87f664d1ad29cc4712303d2142fe386368f07d.tar.gz |
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.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index bf1c8b0..f02a357 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 */ }; |