Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp4608748pxa; Mon, 10 Aug 2020 13:24:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxOb2fd8UK7ADl00MEYWtw1aNLf+vXHj7c45ePBtSN2cd20SaucgmE4wBDgOoj8EGDN8Q75 X-Received: by 2002:a17:906:4157:: with SMTP id l23mr23022884ejk.491.1597091090070; Mon, 10 Aug 2020 13:24:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597091090; cv=none; d=google.com; s=arc-20160816; b=DF1YqNwwFsp/pfhYWwTGf7IP0vL0ti8PvBvTvJcCT1Txp9Yl/1Jbe0Bx6ex+bZdYK/ VFjfdVy9amwa4CJFygK3E6qPa24NA3CekSs+WNF4SMrPU4So42IceLCThMqhgZPUZhHy bfUfeaNI4TNsUGkXqp/VZtSD0Lq5b4Rm3of/piOKm7B9cpXakchPIEuXEYMj8MlOdqao okyQMnpS9PqX3VUPvXaBAxeD35IXHa71xKVMP+UHZdckN1k92U1srJWGdCJWyGJm/8Jf rSd4dzky4PA68M8u+KUWUNLS1Uh0zNKbShKQRE6tE7M407mN+XPzzJgQJvKYsl66Ywf5 e+Qg== 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:cc:to:subject:dkim-signature; bh=c6pBI5MxnpEnuKghhV5aUeX0ikCMORE+D9KtpC4PopE=; b=NTBI+JcKU/tJ54kBWJWMSGXIBNkqRd4Y7VwDLp7akNn51mHPL7ir/wbOrj+gCDUb3M yXUA238RMiyxplFcKYj7ZbuE45NufQZEFsqxVXWGJRRB0g29jLhUpO4q3Mllh5XzFyhz SX/O1Ikz9kGW32uJJAc8HEhyMCkH9n47H1Kv81/fCTISKB3npd/krZQ6MW2ge1wwrBGJ JNW4iHAGWezfqenTDs1I4EV2GAKKYDN3Z1gp5Qt4vof/QYMePMwI+0bUwAAVy7hLabIe PTOjowfic9ZxkpDTwxGJVYbVPMQoa4CIYvaYv+niK9jyQCudY3CuYX2DubNqvqGjf8A7 FpXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=A1rXdbYy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z13si10772766eja.704.2020.08.10.13.24.26; Mon, 10 Aug 2020 13:24:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=A1rXdbYy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726611AbgHJUVN (ORCPT + 99 others); Mon, 10 Aug 2020 16:21:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726143AbgHJUVM (ORCPT ); Mon, 10 Aug 2020 16:21:12 -0400 Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 655F5C061756 for ; Mon, 10 Aug 2020 13:21:12 -0700 (PDT) Received: by mail-lj1-x22d.google.com with SMTP id t6so11040188ljk.9 for ; Mon, 10 Aug 2020 13:21:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=c6pBI5MxnpEnuKghhV5aUeX0ikCMORE+D9KtpC4PopE=; b=A1rXdbYy1kXnW/tuHp39B8KffjUxifEmL9Qu6yjTyt6goBHyod8D0PlStOGnhPUVyo tdtP2tJuZfX87pflPW51ULFOYWEK7s7Hw6KaPPzrilRkge9mNUan12XJQulg/xM3TND+ 6r11y7ISHDPFn4rYeCD++ekNXS2yq+fGhn5V2UEW91FsjvOJUgLmXrqLbz1M3bMViyQy qnWrl4rLOV7FrKFEJmOwyHtL4aPqnOgbF/s9DNoLEr0CwxkMO0qg0Z4k5/+aWUsMN6z9 911wvcQtKqWmP9NC0pVVqE2sA2PdeSZ0xD7IHBOFPTJu/5dQFmyxpoLVQ9a3xqyNwu9u Fz6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=c6pBI5MxnpEnuKghhV5aUeX0ikCMORE+D9KtpC4PopE=; b=iMTUsRPoV0qYlA2dwkNHwbxryxsDsRHabNsKIWywSDd4MTGRAUlvoVjJlwyWlR22k0 4cNTaJAoXjvZ9vk0cPZ8J3vnMKUKPleiFjycjRazFY2S3bWITmlyrZjMi7W74MF+Pmnh L0jvJ8pgfrJgnx87va154nTw+CAknE4VoP5g5swf43MlHhg4eXiEbyUKv8whFT8Evh62 y/ExLlUnpNzEtft6gpB2JoV66H3vBZt4s+nh+LUx/HgjGAdmj5mzqR1T6aVQc8+RKkJs 1pN4NftzzF6Nek8G3Pm2bX9xxLkd67XEFlSyciKVnXOBbYhXGMfLQALqGaUhFE9OKNF6 Wfpg== X-Gm-Message-State: AOAM533E3HR5sNzXr6FkzSpg9C8scRs6fG45Kj5MDgEdrCSgDVj2mKK4 UE8ACLURgmcZll7OsFVIhn7MhHUG X-Received: by 2002:a2e:b056:: with SMTP id d22mr1336821ljl.248.1597090869388; Mon, 10 Aug 2020 13:21:09 -0700 (PDT) Received: from [192.168.2.145] (109-252-170-211.dynamic.spd-mgts.ru. [109.252.170.211]) by smtp.googlemail.com with ESMTPSA id a24sm8230066lji.36.2020.08.10.13.21.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 10 Aug 2020 13:21:08 -0700 (PDT) Subject: Re: regulator: deadlock vs memory reclaim To: =?UTF-8?B?TWljaGHFgiBNaXJvc8WCYXc=?= Cc: Mark Brown , Liam Girdwood , linux-kernel@vger.kernel.org References: <9a5c8ca6-2027-4d89-e290-6db564b99962@gmail.com> <20200810201846.GA12091@qmqm.qmqm.pl> From: Dmitry Osipenko Message-ID: Date: Mon, 10 Aug 2020 23:21:08 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200810201846.GA12091@qmqm.qmqm.pl> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 10.08.2020 23:18, Michał Mirosław пишет: > On Mon, Aug 10, 2020 at 11:15:28PM +0300, Dmitry Osipenko wrote: >> 10.08.2020 23:09, Michał Mirosław пишет: >>> At first I also thought so, but there's more. Below is a lockdep >>> complaint with your patch applied. I did a similar patch and then two more >>> (following) and that is still not enough (sysfs/debugfs do allocations, >>> too). >> Then it should be good to move the locking for init_coupling() like I >> suggested and use GFP_NOWAIT for the two other cases. It all could be a >> single small patch. Could you please check whether GFP_NOWAIT helps? > > This would be equivalent to my patches. Problem with sysfs and debugfs > remains as they don't have the option of GFP_NOWAIT. This needs to be > moved outside of the locks. Ah okay, you meant the debugfs core. I see now, thanks.