[lkml]   [2022]   [Apr]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: staging: r8188eu: how to handle nested mutex under spinlock
On 4/3/22 13:56, Fabio M. De Francesco wrote:
> On domenica 3 aprile 2022 13:48:31 CEST Pavel Skripkin wrote:
>> Hi Michael,
>> msleep() cannot be called in atomic context:
>> drivers/staging/r8188eu/core/rtw_pwrctrl.c:379
>> if (pwrpriv->ps_processing) {
>> while (pwrpriv->ps_processing && rtw_get_passing_time_ms(start) <= 3000)
>> msleep(10);
>> }

Ah, just another issue...

> I wanted to use mdelay() (allowed under spinlocks because it does not
> sleep) but Dan said to leave it as it is. You might easily find this
> discussion on this list. I cannot remember why Dan was against replacing
> msleep() with mdelay(). Please try to find that thread.

I'll take a breath and look further into it later. Seems a solution like
the one Larry mentioned is reasonable here.

Thank you both,

 \ /
  Last update: 2022-04-03 14:15    [W:0.060 / U:15.996 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site