commit | 73ac2f4e8256b9605c84364011322f015b31f499 | [log] [tgz] |
---|---|---|
author | Chao Yu <yuchao0@huawei.com> | Wed Aug 23 18:23:24 2017 +0800 |
committer | Jaegeuk Kim <jaegeuk@kernel.org> | Tue Aug 29 10:05:42 2017 -0700 |
tree | b5e98beda61c198a551f67e4284c606e2ef88705 | |
parent | 01983c715ad0e78842a885f361ad927a3a985994 [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>