diff options
| author | Kaixu Xia <[email protected]> | 2020-10-10 08:10:16 +0000 |
|---|---|---|
| committer | Theodore Ts'o <[email protected]> | 2020-10-18 14:37:26 +0000 |
| commit | d3e7d20befd9d07db2955015a3f294c0a0a771d3 (patch) | |
| tree | 2ffe9d71f346dc1afbc24217c493b8097822c69d /fs/ext4/fast_commit.c | |
| parent | ext4: fix bs < ps issue reported with dioread_nolock mount opt (diff) | |
| download | kernel-d3e7d20befd9d07db2955015a3f294c0a0a771d3.tar.gz kernel-d3e7d20befd9d07db2955015a3f294c0a0a771d3.zip | |
ext4: use the normal helper to get the actual inode
Here we use the READ_ONCE to fix race conditions in ->d_compare() and
->d_hash() when they are called in RCU-walk mode, seems we can use
the normal helper d_inode_rcu() to get the actual inode.
Signed-off-by: Kaixu Xia <[email protected]>
Reviewed-by: Lukas Czerner <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Theodore Ts'o <[email protected]>
Diffstat (limited to 'fs/ext4/fast_commit.c')
0 files changed, 0 insertions, 0 deletions
