commit | 09ed2bc5bc7ee5e81b06b8a6d2dea44d94a4cd45 | [log] [tgz] |
---|---|---|
author | Chao Yu <yuchao0@huawei.com> | Wed Aug 23 18:23:24 2017 +0800 |
committer | Jaegeuk Kim <jaegeuk@kernel.org> | Thu Sep 21 13:55:56 2017 -0700 |
tree | 36ec504ccca6275fb412c89ae451a9bc1a98f406 | |
parent | 200ad89160136de70840db44b7a7521a44b638ac [diff] |
f2fs: fix to avoid race in between aio and gc We won't wait DIO synchronously when doing AIO, so there will be potential IO reorder in between AIO and GC, which will cause data corruption. This patch adds inode_dio_wait to serialize aio and data GC to avoid this issue. Signed-off-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>