Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp602046ybl; Wed, 29 Jan 2020 06:24:07 -0800 (PST) X-Google-Smtp-Source: APXvYqzJx6pyIf7lecaI6E3588K+anX4nQw8GLEFGnJaqqnpjnjqJe1p0mR0BdI/6dHE8eyo/9f4 X-Received: by 2002:a9d:5784:: with SMTP id q4mr21393404oth.278.1580307846915; Wed, 29 Jan 2020 06:24:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580307846; cv=none; d=google.com; s=arc-20160816; b=UO/33hkpKtvQkxF234jeui5RrZV1oVG9TEQxNcaDpS/AlZjISa8nywTBI5E6OHdCUo B5g/25aiBDVU3fytadSOsKl/vghrvtRNV3w3NOun0lb3RwtOeUAKNqLDIQGwiWnCbaSp /kOkg1Z7Eu5pjxdgqIgwucxW9D/DHKz7dMb0R+hMq3f1U4RbEcndxiQsznoWN8YHzauS fmGGNJ38ASbkyVl3Cent/u0QZgh7gitIONJy9RhC91IBf/f8YwCP63FhwNQsJ/n1kgTT W4ffZnDwT0UuuJI4khRkkT5iPbg1Fo0hqZ9BLRH3J2OttN6oHSdDdT5XxdowqSJHHPr7 J+kg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=3zWmIYjvdIcKRjS6UtlUjFqrTUuCt6nW0yqpJeTOCY4=; b=tsCg4LMh4BwfIoyYJom5Ekf/qWuSutst+QTK/vAKQd9/TvcLcdoR6vdEQRGGBkFZjS gNIBjkx0HI2jYziemuYX4bW+mnTtWfi/U4l6SmeObUaDgZCNZnCN+raWcAZHxLFgkP2s m0Cb7KMn3qlNKKDe97rD/tg6GOV3/s1AQZSng/9rWKQdlwYUeoj+HlbWhTHtG+a37dRZ hEXOtLln5XbbP+5dhsQtI+Dj8Pi3p8gEcPS211cVdxbfIx6EW+7bA0UppCVZMyDJNV6n lWOv6o2KN7SKqdTr6cGh0ifouo6QiNitOFBwxyJTX5NfTqh2PUKJCeoVk+qkxwPtwXkq sV+A== 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 s21si1246082otr.304.2020.01.29.06.23.54; Wed, 29 Jan 2020 06:24:06 -0800 (PST) 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 S1726643AbgA2OXA (ORCPT + 99 others); Wed, 29 Jan 2020 09:23:00 -0500 Received: from mx2.suse.de ([195.135.220.15]:54600 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726314AbgA2OW7 (ORCPT ); Wed, 29 Jan 2020 09:22:59 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 9F6EEB1A6; Wed, 29 Jan 2020 14:22:57 +0000 (UTC) Date: Wed, 29 Jan 2020 15:22:55 +0100 From: Michal =?iso-8859-1?Q?Koutn=FD?= To: madhuparnabhowmik10@gmail.com Cc: tj@kernel.org, lizefan@huawei.com, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, joel@joelfernandes.org, rcu@vger.kernel.org, frextrite@gmail.com Subject: Re: [PATCH] cgroup.c: Use built-in RCU list checking Message-ID: <20200129142255.GE11384@blackbody.suse.cz> References: <20200118031051.28776-1-madhuparnabhowmik10@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200118031051.28776-1-madhuparnabhowmik10@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello. On Sat, Jan 18, 2020 at 08:40:51AM +0530, madhuparnabhowmik10@gmail.com wrote: > From: Madhuparna Bhowmik > > list_for_each_entry_rcu has built-in RCU and lock checking. > Pass cond argument to list_for_each_entry_rcu() to silence > false lockdep warning when CONFIG_PROVE_RCU_LIST is enabled > by default. I assume if you've seen the RCU warning, you haven't seen the warning from cgroup_assert_mutex_or_rcu_locked() above. The patch makes sense to me from the consistency POV. Acked-by: Michal Koutn? Michal