Commit f806de8
maple_tree: remove rcu_read_lock() from mt_validate()
The write lock should be held when validating the tree to avoid updates
racing with checks. Holding the rcu read lock during a large tree
validation may also cause a prolonged rcu read window and "rcu_preempt
detected stalls" warnings.
Link: https://lore.kernel.org/all/[email protected]/
Link: https://lkml.kernel.org/r/[email protected]
Fixes: 54a611b ("Maple Tree: add new data structure")
Signed-off-by: Liam R. Howlett <[email protected]>
Reported-by: [email protected]
Cc: Hillf Danton <[email protected]>
Cc: Matthew Wilcox <[email protected]>
Cc: "Paul E. McKenney" <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>1 parent 6dacd79 commit f806de8
1 file changed
+2
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7566 | 7566 | | |
7567 | 7567 | | |
7568 | 7568 | | |
| 7569 | + | |
7569 | 7570 | | |
7570 | 7571 | | |
7571 | 7572 | | |
7572 | 7573 | | |
7573 | | - | |
7574 | 7574 | | |
7575 | 7575 | | |
7576 | | - | |
| 7576 | + | |
7577 | 7577 | | |
7578 | 7578 | | |
7579 | 7579 | | |
| |||
7594 | 7594 | | |
7595 | 7595 | | |
7596 | 7596 | | |
7597 | | - | |
7598 | | - | |
7599 | | - | |
7600 | 7597 | | |
7601 | 7598 | | |
7602 | 7599 | | |
| |||
0 commit comments