From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758613AbZLGSiy (ORCPT ); Mon, 7 Dec 2009 13:38:54 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758551AbZLGSix (ORCPT ); Mon, 7 Dec 2009 13:38:53 -0500 Received: from mx1.redhat.com ([209.132.183.28]:16331 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758478AbZLGSiw (ORCPT ); Mon, 7 Dec 2009 13:38:52 -0500 Date: Mon, 7 Dec 2009 19:32:26 +0100 From: Oleg Nesterov To: "Eric W. Biederman" Cc: Linus Torvalds , Thomas Gleixner , Peter Zijlstra , Ingo Molnar , Christoph Hellwig , Nick Piggin , Linux Kernel Mailing List Subject: Re: [rfc] "fair" rw spinlocks Message-ID: <20091207183226.GA20139@redhat.com> References: <20091130100041.GA29610@infradead.org> <20091130174638.GA9782@elte.hu> <1259616429.26472.499.camel@laptop> 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/05, Eric W. Biederman wrote: > > Atomically sending signal to every member of a process group, is the > big fly in the ointment I am aware of. Last time I looked I could > not see how to convert it rcu. I am not sure, but iirc we can do this lockless (under rcu_lock). We need to modify pid_link to use list_entry and attach_pid() should add the new task to the end. Of course we need more changes, but (again iirc) this is not too hard. > This is a pain because we occasionally signal a process group from > interrupt context. Only send_sigio/etc does so, right? I didn't read the previous discussion yet (will try tomorrow), sorry if I am off-topic. But I think the nastiest problem with tasklist is that it protects parent/child relationship. We need per-process lock, but first we should change ptrace to avoid this lock somehow. (this is one of the goals of ptrace-utrace, but not "immediate"). Oleg.