Commit aa86847
workqueue: Remove unneeded lockdep_assert_cpus_held()
The commit 19af457 ("workqueue: Remove cpus_read_lock() from
apply_wqattrs_lock()") removes the unneed cpus_read_lock() after the pwq
creations and installations have been reworked based on wq_online_cpumask
rather than cpu_online_mask making cpus_read_lock() is unneeded during
wqattrs changes.
But it desn't remove the lockdep_assert_cpus_held() checks during wqattrs
changes, which leads to complaints from lockdep reported by kernel test
robot:
[ 15.726567][ T131] ------------[ cut here ]------------
[ 15.728117][ T131] WARNING: CPU: 1 PID: 131 at kernel/cpu.c:525 lockdep_assert_cpus_held (kernel/cpu.c:525)
[ 15.731191][ T131] Modules linked in: floppy(+) parport_pc(+) parport qemu_fw_cfg rtc_cmos
[ 15.733423][ T131] CPU: 1 PID: 131 Comm: systemd-udevd Tainted: G T 6.10.0-rc2-00254-g19af45757383 #1 df6f039f42e8818bf9a534449362ebad1aad32e2
[ 15.737011][ T131] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
[ 15.739760][ T131] EIP: lockdep_assert_cpus_held (kernel/cpu.c:525)
[ 15.741326][ T131] Code: 97 c2 03 72 20 83 3d f4 73 97 c2 00 74 17 55 89 e5 b8 fc bd 4d c2 ba ff ff ff ff e8 e4 57 d1 00 85 c0 74 06 5d 31 c0 31 d2 c3 <0f> 0b eb f6 90 90 90 90 90 90 90 90 90 90 90 90 90 90 55 89 e5 b8
Fix it by removing the unneeded lockdep_assert_cpus_held().
Also remove the unneed cpus_read_lock() from wq_affn_dfl_set().
tj: Dropped the removal of cpus_read_lock/unlock() in wq_affn_dfl_set() to
keep this patch fix only.
Cc: kernel test robot <[email protected]>
Fixes: 19af457("workqueue: Remove cpus_read_lock() from apply_wqattrs_lock()")
Reported-by: kernel test robot <[email protected]>
Closes: https://lore.kernel.org/oe-lkp/[email protected]
Signed-off-by: Lai Jiangshan <[email protected]>
Signed-off-by: Tejun Heo <[email protected]>1 parent b02c520 commit aa86847
1 file changed
+2
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5342 | 5342 | | |
5343 | 5343 | | |
5344 | 5344 | | |
5345 | | - | |
5346 | | - | |
5347 | 5345 | | |
5348 | 5346 | | |
5349 | 5347 | | |
5350 | 5348 | | |
5351 | 5349 | | |
5352 | 5350 | | |
5353 | 5351 | | |
5354 | | - | |
5355 | | - | |
5356 | 5352 | | |
5357 | 5353 | | |
5358 | 5354 | | |
| |||
5434 | 5430 | | |
5435 | 5431 | | |
5436 | 5432 | | |
5437 | | - | |
5438 | 5433 | | |
5439 | 5434 | | |
5440 | 5435 | | |
| |||
5695 | 5690 | | |
5696 | 5691 | | |
5697 | 5692 | | |
5698 | | - | |
5699 | | - | |
| 5693 | + | |
5700 | 5694 | | |
5701 | 5695 | | |
5702 | 5696 | | |
| |||
6862 | 6856 | | |
6863 | 6857 | | |
6864 | 6858 | | |
6865 | | - | |
6866 | | - | |
| 6859 | + | |
6867 | 6860 | | |
6868 | 6861 | | |
6869 | 6862 | | |
| |||
6873 | 6866 | | |
6874 | 6867 | | |
6875 | 6868 | | |
6876 | | - | |
6877 | 6869 | | |
6878 | 6870 | | |
6879 | 6871 | | |
| |||
0 commit comments