Commit 5577273
cgroup/cpuset: Fix "suspicious RCU usage" lockdep warning
commit 2bdfd28 upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent f1f7d1a commit 5577273
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1481 | 1481 | | |
1482 | 1482 | | |
1483 | 1483 | | |
| 1484 | + | |
| 1485 | + | |
1484 | 1486 | | |
1485 | 1487 | | |
1486 | 1488 | | |
1487 | 1489 | | |
| 1490 | + | |
| 1491 | + | |
| 1492 | + | |
1488 | 1493 | | |
1489 | 1494 | | |
1490 | 1495 | | |
1491 | 1496 | | |
1492 | 1497 | | |
1493 | 1498 | | |
1494 | 1499 | | |
| 1500 | + | |
| 1501 | + | |
1495 | 1502 | | |
| 1503 | + | |
1496 | 1504 | | |
| 1505 | + | |
| 1506 | + | |
1497 | 1507 | | |
1498 | 1508 | | |
1499 | 1509 | | |
| |||
0 commit comments