]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: recheck buffer uptodate bit under buffer lock
authorZhang Yi <yi.zhang@huawei.com>
Fri, 10 Sep 2021 08:03:16 +0000 (16:03 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 1 Oct 2021 04:10:28 +0000 (00:10 -0400)
commita1c1990abecb87c4a37bdf9ad80a5d3db1441017
tree66ee04744214e8e2e030e925b5d99c7613e50de3
parent158f18f1f8f08c88a8b5ab9a298d7176eef0d18a
ext4: recheck buffer uptodate bit under buffer lock

Commit 7cb159d71ace ("ext4: remove an unnecessary if statement in
__ext4_get_inode_loc()") forget to recheck buffer's uptodate bit again
under buffer lock, which may overwrite the buffer if someone else have
already brought it uptodate and changed it.

Fixes: 7cb159d71ace ("ext4: remove an unnecessary if statement in __ext4_get_inode_loc()")
Cc: stable@kernel.org
Signed-off-by: Zhang Yi <yi.zhang@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Link: https://lore.kernel.org/r/20210910080316.70421-1-yi.zhang@huawei.com
fs/ext4/inode.c