Commit e398978
workqueue: Better describe stall check
Try to be more explicit why the workqueue watchdog does not take
pool->lock by default. Spin locks are full memory barriers which
delay anything. Obviously, they would primary delay operations
on the related worker pools.
Explain why it is enough to prevent the false positive by re-checking
the timestamp under the pool->lock.
Finally, make it clear what would be the alternative solution in
__queue_work() which is a hotter path.
Signed-off-by: Petr Mladek <[email protected]>
Acked-by: Song Liu <[email protected]>
Signed-off-by: Tejun Heo <[email protected]>1 parent c7f27a8 commit e398978
1 file changed
Lines changed: 8 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7702 | 7702 | | |
7703 | 7703 | | |
7704 | 7704 | | |
7705 | | - | |
7706 | | - | |
7707 | | - | |
7708 | | - | |
7709 | | - | |
7710 | | - | |
7711 | | - | |
| 7705 | + | |
| 7706 | + | |
| 7707 | + | |
| 7708 | + | |
| 7709 | + | |
| 7710 | + | |
| 7711 | + | |
| 7712 | + | |
7712 | 7713 | | |
7713 | 7714 | | |
7714 | 7715 | | |
| |||
0 commit comments