On 8/3/21 7:21 PM, Thomas Gleixner wrote:
To complete the analysis of drain_local_stock(). AFAICT that functionI haven't done a full analysis to see if it can be called from task context only. Maybe in_task() check isn't needed, but having it there provides the safety that it will still work in case it can be called from interrupt context.
can only be called from task context. So what is the purpose of this
in_task() conditional there?
if (in_task())
drain_obj_stock(&stock->task_obj);