From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761860AbdAKKSz (ORCPT ); Wed, 11 Jan 2017 05:18:55 -0500 Received: from mail-oi0-f51.google.com ([209.85.218.51]:34718 "EHLO mail-oi0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761620AbdAKKSx (ORCPT ); Wed, 11 Jan 2017 05:18:53 -0500 MIME-Version: 1.0 In-Reply-To: References: From: Andrey Konovalov Date: Wed, 11 Jan 2017 11:18:52 +0100 Message-ID: Subject: Re: net/atm: warning in alloc_tx/__might_sleep To: Eric Dumazet Cc: Cong Wang , "David S. Miller" , Alexey Kuznetsov , James Morris , Hideaki YOSHIFUJI , Patrick McHardy , netdev , LKML , Al Viro , Dmitry Vyukov , Kostya Serebryany , syzkaller Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 10, 2017 at 6:40 PM, Eric Dumazet wrote: > On Tue, Jan 10, 2017 at 9:35 AM, Cong Wang wrote: >> On Mon, Jan 9, 2017 at 9:20 AM, Andrey Konovalov 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 Thanks! > > > You forgot to remove schedule() ? > > schedule(); > + wait_woken(&wait, TASK_INTERRUPTIBLE, MAX_SCHEDULE_TIMEOUT);