Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp6530907ybv; Wed, 12 Feb 2020 14:14:37 -0800 (PST) X-Google-Smtp-Source: APXvYqztZ0nsCU9bdPCDV5VhPrQomuo8lTVhMJSAu7HPy7Wr6XH7XeawMux5cC8Q8H71AM0FlM9a X-Received: by 2002:a05:6830:22cd:: with SMTP id q13mr11195839otc.224.1581545677204; Wed, 12 Feb 2020 14:14:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581545677; cv=none; d=google.com; s=arc-20160816; b=MKZzeoT8XtKl2zg9XWXJp6yFkAqwefiVqm4UvXQxf30eEq9pHvdeuRpUqpXK2GTErZ zBw2bOo0dC1lVTi8y596gc7OpjPtVamGNOBHY5Z0C4CIrDeGuR0CjSK23Ij5uhBZn//u /KHwy7D65/5xv/ruJW/OHrUfREza+pgqj5RKv0aRe+dAXwXYep779lvHndYZ6IVNvvaw +Dh0rgjfd5UZ2evBypBy1OrABaS8QsYTgbp6GARbYhq1p79nQBG7l3T0YRnJs7H0VCP2 fVsw05a0mJbwK1ySow5/T2qTZDbHrpSK3MQ3kFUy3icNt3dmKnmK56XDcMwdKWk6bpiK xbng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=htZSNJ3oIZAPreJh5xh8HpLPmxowkMMDY5AHwsIFPU4=; b=FT0mIopqmwbupwtMj2Ch/xe7/LI2/VkB8jfoUeCni0DWNnO68rCnpzC7oI5NK8nGg9 RakwhHmYc4K8xt0I8qex4LhkN1L18pKzl1xaUPXolj5DhqLFQuL7w10pdutZC59v9iY7 xXUTzo9Vlx45wmFI+0XHxEZWBNrMPzLDK5B7tI2t4QoVRcrHxqR4CXlprptG0BM3GRRD w/uU9tfJXSYkPl1tDraz3OUcuGm8j/AW/Bt0SkMSvBIdnX1I2yPwcMltc6BcIKm2lZK3 fq3eQepzyiBmeCTfh2OLUwbVTh8bKHd7w3kXblQb5rHcMNog37M18Scr4ehiOUXBtZRy zDrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=JgbLnHXZ; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f9si90440oti.44.2020.02.12.14.14.24; Wed, 12 Feb 2020 14:14:37 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=JgbLnHXZ; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729089AbgBLWMw (ORCPT + 99 others); Wed, 12 Feb 2020 17:12:52 -0500 Received: from mail-qk1-f194.google.com ([209.85.222.194]:36713 "EHLO mail-qk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727564AbgBLWMw (ORCPT ); Wed, 12 Feb 2020 17:12:52 -0500 Received: by mail-qk1-f194.google.com with SMTP id w25so3752284qki.3; Wed, 12 Feb 2020 14:12:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=htZSNJ3oIZAPreJh5xh8HpLPmxowkMMDY5AHwsIFPU4=; b=JgbLnHXZBEJ6fny9Cf39uzWywqhTZCEc9XA7HjonBYcbbBVxey3E8jGB1bPKWVrUdH MDi2aKPGMfYktEAwxum6w8vAcuQKbRKfvpUwLIGwLk3/YmeHtcygHekDiNYf5+9Q3/ti zacH6LhE208pGea8c9ESgsdYtAeXB4ezKvDfBqcv9jlPHtgoFYltXKi/V/yrcVbYwnku X3bNAPwE8YMLtOxeeS52qw2JNI4UFj3sP6w3f4vVctpZ6uj6fLe0Dq1xLddiXOyyjYKa A7dAQszw4h0EP/fqdq1NQXGkBCDWNQkAIM2qeUiWaw6Udu9cErLrvXzo/wABUaU4uD/W FynQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=htZSNJ3oIZAPreJh5xh8HpLPmxowkMMDY5AHwsIFPU4=; b=C8Ug9jH40vk/5pOkGXLTSN/WguOooEey+REBbI+2iIUTN2uxPLNkKZGvhY0Sp9gKd7 Hj1CXoLsgoJ37DgbaGne3XbEL1wq16vuDY/z5IBqdy3pHaGE3X+E0cwtCrIDfehoTLoe wRdl6nRWoFt8UBdCJsTcOnoY9Jl8zwNLLlqZxMd2lexFoq/qGZn0XXtmdgYdJMwC9pRg WGKt9mJyQmU0GaNw5aVSqT2mh0YzBrFbgRCfxeeV78Cc+Mff8Oh4treBG2ONXdQ86sgF APPFD4AplKowj6pOW0fLdgEW4x73zPsJVvLm2SK2pe066HFgkHfloKOGKhKTFZozi3X4 vpiw== X-Gm-Message-State: APjAAAVnT4EexUst0eXASEkUF/m/dwJX4gr+i708UbDXnx2quqLLkrkq 0VS7mvYiimykdhIOxq0vLMA= X-Received: by 2002:a05:620a:90d:: with SMTP id v13mr13066419qkv.332.1581545570921; Wed, 12 Feb 2020 14:12:50 -0800 (PST) Received: from localhost ([2620:10d:c091:500::1:985a]) by smtp.gmail.com with ESMTPSA id r3sm288026qtc.85.2020.02.12.14.12.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Feb 2020 14:12:50 -0800 (PST) Date: Wed, 12 Feb 2020 17:12:49 -0500 From: Tejun Heo To: madhuparnabhowmik10@gmail.com Cc: 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: <20200212221249.GJ80993@mtj.thefacebook.com> References: <20200118031051.28776-1-madhuparnabhowmik10@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200118031051.28776-1-madhuparnabhowmik10@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > > Even though the function css_next_child() already checks if > cgroup_mutex or rcu_read_lock() is held using > cgroup_assert_mutex_or_rcu_locked(), there is a need to pass > cond to list_for_each_entry_rcu() to avoid false positive > lockdep warning. > > Signed-off-by: Madhuparna Bhowmik Applied to cgroup/for-5.7. Thanks. -- tejun