Messages in this thread | | | Date | Thu, 7 Dec 2023 13:35:45 +0100 | From | Peter Zijlstra <> | Subject | Re: [PATCH] freezer,sched: Move state information judgment outside task_call_func |
| |
On Thu, Dec 07, 2023 at 07:16:34PM +0800, Xiaolei Wang wrote: > It is dangerous to output warnings in task_call_func, > which may lead to the risk of deadlock. task_call_func > uses p->pi_lock, and the serial port output may call > try_to_wake_up to wake up the write buff, which also > uses p->pi_lock.
No, we're not going to make the code ugly because printk is stupid. Fix whatever that triggers the WARN and leave it at that.
| |