summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/super.c
diff options
context:
space:
mode:
authorChao Yu <yuchao0@huawei.com>2017-05-19 23:37:01 +0800
committerJaegeuk Kim <jaegeuk@kernel.org>2017-05-23 21:09:03 -0700
commitfb830fc5cfc90ba8236921aacb72c6d70bf78af7 (patch)
treeb4a67924b1df7f03367b6af6b2d795efff91699b /fs/f2fs/super.c
parente41e6d75e5010741f01f8aa4f77a5e8a1786652d (diff)
downloadlinux-stable-fb830fc5cfc90ba8236921aacb72c6d70bf78af7.tar.gz
linux-stable-fb830fc5cfc90ba8236921aacb72c6d70bf78af7.tar.bz2
linux-stable-fb830fc5cfc90ba8236921aacb72c6d70bf78af7.zip
f2fs: introduce io_list for serialize data/node IOs
Serialize data/node IOs by using fifo list instead of mutex lock, it will help to enhance concurrency of f2fs, meanwhile keeping LFS IO semantics. Signed-off-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/super.c')
-rw-r--r--fs/f2fs/super.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c
index b700766d0cbf..d6af34d1e6a8 100644
--- a/fs/f2fs/super.c
+++ b/fs/f2fs/super.c
@@ -1983,6 +1983,8 @@ try_onemore:
init_rwsem(&sbi->write_io[i][j].io_rwsem);
sbi->write_io[i][j].sbi = sbi;
sbi->write_io[i][j].bio = NULL;
+ spin_lock_init(&sbi->write_io[i][j].io_lock);
+ INIT_LIST_HEAD(&sbi->write_io[i][j].io_list);
}
}