]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs: fix to commit bio cache after flushing node pages
authorChao Yu <yuchao0@huawei.com>
Thu, 29 Sep 2016 10:50:10 +0000 (18:50 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Sat, 1 Oct 2016 00:34:38 +0000 (17:34 -0700)
commit000b148bcaa16877ba9a5767c9d384123bf22f02
tree139debf9e15b1556e179b241b77db7975b84ce6d
parent0a5fced98fd823fd67bee017314ee7ac9029bc8f
f2fs: fix to commit bio cache after flushing node pages

In sync_node_pages, we won't check and commit last merged pages in private
bio cache of f2fs, as these pages were taged as writeback, someone who is
waiting for writebacking of the page will be blocked until the cache was
committed by someone else.

We need to commit node type bio cache to avoid potential deadlock or long
delay of waiting writeback.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/node.c