From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933679AbcFQLHi (ORCPT ); Fri, 17 Jun 2016 07:07:38 -0400 Received: from mail-io0-f196.google.com ([209.85.223.196]:35220 "EHLO mail-io0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933574AbcFQLHg (ORCPT ); Fri, 17 Jun 2016 07:07:36 -0400 Subject: Re: [BUG] act_ife: sleeping functions called in atomic context To: Cong Wang References: <1466110219-4825-1-git-send-email-khoroshilov@ispras.ru> <57634687.3050107@mojatatu.com> Cc: Alexey Khoroshilov , "David S. Miller" , Linux Kernel Network Developers , LKML , ldv-project@linuxtesting.org From: Jamal Hadi Salim Message-ID: <5763D9F6.6020305@mojatatu.com> Date: Fri, 17 Jun 2016 07:07:34 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 16-06-17 01:38 AM, Cong Wang wrote: > On Thu, Jun 16, 2016 at 7:14 PM, Cong Wang wrote: >> >> I think we can just remove that tcf_lock, I am testing a patch now. > > Please try the attached patch, I will do more tests tomorrow. > > Thanks! > Cong, What tree are you using? I dont see the time aggregation patches that I sent (and Dave took in) in your changes. Comments: Is GFP_ATOMIC really necessary? Thats user->kernel interface. GFP_KERNEL should be sufficient. Also, it would be nice to kill the lock - but this feels like two patches in one. 1) to fix the alloc not to be under the lock 2) to kill said lock. Maybe split it as such for easier review. I am using this action extensively so will be happy to test. I think my patch is a good beginning to #1 - if you fix the forgotten unlock and ensure we lock around updating ife fields when it exists already (you said it in your earlier email and I thought about that afterwards). cheers, jamal