bc17563a8f
CPU0 CPU1 work_queue(a) work_queue(a) -> work_cancel(a) -> work_cancel(a) -> enter_critical() -> sq_addlast(a) -> leave_critical() -> enter_critical() -> sq_addlast(a) // double add, wrong -> leave_critical() Also, this happens in mulit-threads in one CPU. Fix: work_cancel() should in critical section. Signed-off-by: ligd <liguiding1@xiaomi.com> |
||
---|---|---|
.. | ||
kwork_cancel.c | ||
kwork_inherit.c | ||
kwork_notifier.c | ||
kwork_queue.c | ||
kwork_thread.c | ||
Make.defs | ||
wqueue.h |