Commit 2bdfd28
cgroup/cpuset: Fix "suspicious RCU usage" lockdep warning
It was found that a "suspicious RCU usage" lockdep warning was issued
with the rcu_read_lock() call in update_sibling_cpumasks(). It is
because the update_cpumasks_hier() function may sleep. So we have
to release the RCU lock, call update_cpumasks_hier() and reacquire
it afterward.
Also add a percpu_rwsem_assert_held() in update_sibling_cpumasks()
instead of stating that in the comment.
Fixes: 4716909 ("cpuset: Track cpusets that use parent's effective_cpus")
Signed-off-by: Waiman Long <longman@redhat.com>
Tested-by: Phil Auld <pauld@redhat.com>
Reviewed-by: Phil Auld <pauld@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>1 parent 24f6008 commit 2bdfd28
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1550 | 1550 | | |
1551 | 1551 | | |
1552 | 1552 | | |
| 1553 | + | |
| 1554 | + | |
1553 | 1555 | | |
1554 | 1556 | | |
1555 | 1557 | | |
1556 | 1558 | | |
| 1559 | + | |
| 1560 | + | |
| 1561 | + | |
1557 | 1562 | | |
1558 | 1563 | | |
1559 | 1564 | | |
1560 | 1565 | | |
1561 | 1566 | | |
1562 | 1567 | | |
1563 | 1568 | | |
| 1569 | + | |
| 1570 | + | |
1564 | 1571 | | |
| 1572 | + | |
1565 | 1573 | | |
| 1574 | + | |
| 1575 | + | |
1566 | 1576 | | |
1567 | 1577 | | |
1568 | 1578 | | |
| |||
0 commit comments