From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757236Ab3LESPZ (ORCPT ); Thu, 5 Dec 2013 13:15:25 -0500 Received: from mx1.redhat.com ([209.132.183.28]:48875 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752691Ab3LESPY (ORCPT ); Thu, 5 Dec 2013 13:15:24 -0500 Date: Thu, 5 Dec 2013 19:16:20 +0100 From: Oleg Nesterov To: David Rientjes Cc: Andrew Morton , "Eric W. Biederman" , Frederic Weisbecker , Mandeep Singh Baines , "Ma, Xindong" , Michal Hocko , Sameer Nanda , Sergey Dyasly , "Tu, Xiaobing" , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/4] introduce for_each_thread() to replace the buggy while_each_thread() Message-ID: <20131205181620.GB26018@redhat.com> References: <20131204130409.GA5998@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/04, David Rientjes wrote: > > Acked-by: David Rientjes Thanks! > Minor: should the definitions of thread_{head,node} be annotated with > __rcu for users of CONFIG_SPARSE_RCU_POINTER? Perhaps. And perhaps task_struct->tasks. And perhaps we should add rcu_read_lock_held() || lockdep_is_held(tasklist) || lockdep_is_held(siglock) into for_each_process/thead. But lets do this later. At least we should avoid the false positives. Oleg.