From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755651Ab3FDRgt (ORCPT ); Tue, 4 Jun 2013 13:36:49 -0400 Received: from mx1.redhat.com ([209.132.183.28]:2585 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753284Ab3FDRgq (ORCPT ); Tue, 4 Jun 2013 13:36:46 -0400 Date: Tue, 4 Jun 2013 19:32:52 +0200 From: Oleg Nesterov To: Andrew Morton , Al Viro Cc: "Eric W. Biederman" , Michal Hocko , Sergey Dyasly , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 0/4] proc: first_tid() fix/cleanup Message-ID: <20130604173252.GA22223@redhat.com> References: <20130603190640.GA11481@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130603190640.GA11481@redhat.com> 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 Andrew, On 06/03, Oleg Nesterov wrote: > > next_thread() should be avoided, probably next_tid() is the > only "valid" user. > > But now we have another reason to avoid (and probably even kill) > it, we are going to replace or fix while_each_thread(), almost > every lockless usage is wrong. > > Changes: > > 1/4: Update the changelog, do not move the comment. > > 2/4: No changes. So these two are fine, but please ignore 3 and 4. > 3/4: Update the comment following the explanations from > Eric. > > Eric pointed that get_proc_task() without rcu lock > can trigger the (bogus) warning. Extract the similar > check from pid_delete_dentry() into the new helper > and use it instead. > > I didn't dare to preserve his ack, but the only change > is the new proc_inode_is_dead() helper and > > - if (pid_task(proc_pid(inode)) > + if (proc_inode_is_dead(inode)) > > in proc_task_readdir(). Looks like a good cleanup and it was acked, but conflicts (textually) with viro/vfs.git#experimental. > 4/4: New. Should be updated and conflicts too. Oleg.