diff options
| author | Sang-Hoon Choi <csh0052@gmail.com> | 2026-09-30 02:37:38 +0900 |
|---|---|---|
| committer | Yu Kuai <yukuai@fygo.io> | 2026-10-04 23:26:23 +0800 |
| commit | 73b0df929494522acf9ccc8dafea4f721166965b (patch) | |
| tree | d51753c983bc7b0f2a7dac7e0ab281ffc735f34f /tools/lib/python | |
| parent | af560e357a81964544be40c549e241b032ef7565 (diff) | |
md/raid5: protect big_stripe_tree lookup with RCU
big_stripe_tree is updated under tree_lock, and deleted radix-tree
nodes are freed after an RCU grace period. r5c_big_stripe_cached()
used to run under an RCU read-side critical section, but that protection
was removed together with unrelated rdev lookup protection.
The lookup can now be preempted while walking the tree, allowing a
concurrent deletion and grace period to complete before the walk
resumes. Protect the lookup locally with rcu_read_lock(). Only the
presence of the entry is used after unlocking.
Fixes: ad8606702f26 ("md/raid5: remove rcu protection to access rdev from conf")
Assisted-by: LLM
Signed-off-by: Sang-Hoon Choi <csh0052@gmail.com>
Link: https://patch.msgid.link/179070265341.12871.12495446593114993799.idr-bug-88@gmail.com
Signed-off-by: Yu Kuai <yukuai@fygo.io>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
