]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
f2fs: fix to wait dio completion
authorChao Yu <chao@kernel.org>
Thu, 27 Jun 2024 07:17:11 +0000 (15:17 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Feb 2025 12:50:12 +0000 (13:50 +0100)
commitf81302decd64245bb1bd154ecae0f65a9ee21f04
tree93064ecd0929cdb4ff2d8e41818d9bb765a26064
parent1dc81fbe691288bf358b9cda5a8ebe6ef46a14d1
f2fs: fix to wait dio completion

commit 96cfeb0389530ae32ade8a48ae3ae1ac3b6c009d upstream.

It should wait all existing dio write IOs before block removal,
otherwise, previous direct write IO may overwrite data in the
block which may be reused by other inode.

Cc: stable@vger.kernel.org
Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Alva Lan <alvalan9@foxmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/f2fs/file.c