Re: [PATCH v2] tee: optee: replace might_sleep with cond_resched

2021-01-21 Thread Jens Wiklander
On Tue, Jan 5, 2021 at 11:29 AM Rouven Czerwinski wrote: > > might_sleep() is a debugging aid and triggers rescheduling only for > certain kernel configurations. Replace with an explicit check and > reschedule to work for all kernel configurations. Fixes the following > trace: > > [

[PATCH v2] tee: optee: replace might_sleep with cond_resched

2021-01-05 Thread Rouven Czerwinski
might_sleep() is a debugging aid and triggers rescheduling only for certain kernel configurations. Replace with an explicit check and reschedule to work for all kernel configurations. Fixes the following trace: [ 572.945146] rcu: INFO: rcu_sched self-detected stall on CPU [ 572.949275] rcu: