Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 447acbd2 authored by Chao Yu's avatar Chao Yu Committed by Sahitya Tummala
Browse files

f2fs: fix to avoid race in between aio and gc



commit 73ac2f4e8256b9605c84364011322f015b31f499 upstream.

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: default avatarChao Yu <yuchao0@huawei.com>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
Git-commit: 663305a7
Git-repo: https://android.googlesource.com/kernel/common.git


Signed-off-by: default avatarSahitya Tummala <stummala@codeaurora.org>
parent 5b88d2c4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment