Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp2795648ybn; Thu, 26 Sep 2019 18:05:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqySCVOqErUqwYLLPhwPFJpdiFxusJrkQeGGh8iVJL6T/5NG6A9W2ctyJBitjquVR4Mgq+CP X-Received: by 2002:a05:6402:1858:: with SMTP id v24mr1862794edy.130.1569546358044; Thu, 26 Sep 2019 18:05:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569546358; cv=none; d=google.com; s=arc-20160816; b=g2jrZM1Sfp8sQm6xvevDRicyEb5ya7AFjl2Fy1MlA7lDXsp3vbV9O91MBuA4kn0rVC +7PiEM3FiMm6bqjqY0Yklmbzpst0qQt3bSVwoR0PTNJQCrRCoU24YOLZ09gast0kZDH/ fgIZUR2nZVzZmMsRjd2E+PoXLrmhEx8mNwA1RbdvKy55HOcdTCEb2LlwZT8zcaG5yI8S DqopQoATAKPL6MpgXt3TLpVSxRIPMEgvjZOS7TDxTnFzbJxE/ZQgyeEDX6inOE/fv6XJ g1F63bXV9KMIOiot7yNA0y9OKsh/lVTv9XPIe5MvQIahoWsFz/EeRWz+eEQbhth8QCA3 MmNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject; bh=raC8ck4ZANJ5BiMZc3VIZXkXpEuTOaB5E4B1oONnxmA=; b=mEV/VoU/nOlrcT21fLQeMi0swtj/3yiibOI3Ly4dJltkdvu0SsxV+DM0ZZxQnL7zVj SUtRZKRtF/eoAm02e6S8FSpJ/H1XnnGRFzUxTPbXmTFFlnnX912tz6jQrb/7WAblPvpo iQCyWKDDx1Rc024Xoh69vEijE1giNQfBQ+xU+Yc57HF+s0QnX4z6f5W4D2oS6ZmqNlq5 ctFiqRuep8jJ0KlcCA3aPWOqxTk7oXB3wBTZm4AgYy2z8rg+2FOQUP9Z2qiqCfQYEOJB BmgGPDSKKZwZwDCgW+iOUyD3sc/qtALiMXL10TO1+k3fpD2dNqUp+tWwmwEuox+NeK0B wvxg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f16si1974489ejc.73.2019.09.26.18.05.02; Thu, 26 Sep 2019 18:05:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727381AbfI0BAu (ORCPT + 99 others); Thu, 26 Sep 2019 21:00:50 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:33484 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725808AbfI0BAt (ORCPT ); Thu, 26 Sep 2019 21:00:49 -0400 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id B1B241319645B0196D57; Fri, 27 Sep 2019 09:00:47 +0800 (CST) Received: from [127.0.0.1] (10.177.251.225) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.439.0; Fri, 27 Sep 2019 09:00:44 +0800 Subject: Re: [PATCH] async: Let kfree() out of the critical area of the lock To: Bart Van Assche , , , "tglx@linutronix.de" , "Alexander Duyck" , , "gregkh@linuxfoundation.org" , David Sterba , "linux-kernel@vger.kernel.org" References: <216356b1-38c1-8477-c4e8-03f497dd6ac8@huawei.com> <20190926110648.GM2751@suse.cz> From: Yunfeng Ye Message-ID: Date: Fri, 27 Sep 2019 09:00:41 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.251.225] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019/9/26 23:18, Bart Van Assche wrote: > On 9/26/19 4:06 AM, David Sterba wrote: >> On Thu, Sep 26, 2019 at 03:58:36PM +0800, Yunfeng Ye wrote: >>> The async_lock is big global lock, I think it's good to put kfree() outside >>> to keep the critical area as short as possible. >> >> Agreed, kfree is not always cheap. We had patches in btrfs moving kfree >> out of critical section(s) after causing softlockups due to increased lock >> contention. > > The above would be a great addition for the commit description. Anyway: > ok, I will update the description, thanks. > Reviewed-by: Bart Van Assche > > . >