aboutsummaryrefslogtreecommitdiff
path: root/fs/f2fs/super.c
diff options
context:
space:
mode:
authorChao Yu <yuchao0@huawei.com>2017-05-19 23:37:01 +0800
committerMoyster <oysterized@gmail.com>2017-07-21 12:37:27 +0200
commita61ad3ab6f8a0e84a91814c5bc388a5e97c7ec16 (patch)
treec6a89390f2a03c1931c8d7f1589a57d6530e348d /fs/f2fs/super.c
parentde2b8fef72ca2f1048a298f8f6a8bb4e38008ca4 (diff)
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 c9eb1590e..d00e1e4a0 100644
--- a/fs/f2fs/super.c
+++ b/fs/f2fs/super.c
@@ -1989,6 +1989,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);
}
}