Re: net/atm: warning in alloc_tx/__might_sleep

From: Andrey Konovalov
Date: Wed Jan 11 2017 - 05:18:57 EST


On Tue, Jan 10, 2017 at 6:40 PM, Eric Dumazet <edumazet@xxxxxxxxxx> wrote:
> On Tue, Jan 10, 2017 at 9:35 AM, Cong Wang <xiyou.wangcong@xxxxxxxxx> wrote:
>> On Mon, Jan 9, 2017 at 9:20 AM, Andrey Konovalov <andreyknvl@xxxxxxxxxx> wrote:
>>
>> The fix should be straight-forward. Mind to try the attached patch?

Hi Cong,

Your patch with schedule() removed as suggested by Eric fixes the issue.

Tested-by: Andrey Konovalov <andreyknvl@xxxxxxxxxx>

Thanks!

>
>
> You forgot to remove schedule() ?
>
> schedule();
> + wait_woken(&wait, TASK_INTERRUPTIBLE, MAX_SCHEDULE_TIMEOUT);