msm: ipa: Fix the problem with nested sleeping primitives
prepare_to_wait() will enqueue the thread on the given queue
and put it into the given execution state,
which is TASK_INTERRUPTIBLE.
Further processing in function, calls mutex_lock(),
will go into a new version of the going-to-sleep code,
changing the task state.
That, of course, may well interfere with the outer
sleeping code.
So, nesting of sleeping primitives in this way is discouraged.
And new warning was added to point out this kind of nesting.
Fix the nesting of sleeping primitives with the new solution
provide in linux kernel.
Change-Id: Id1a5f64472cd2d63e679706c6482db98f89ec765
Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
Loading
Please register or sign in to comment