From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail144.messagelabs.com (mail144.messagelabs.com [216.82.254.51]) by kanga.kvack.org (Postfix) with SMTP id 909166B002D for ; Fri, 7 Oct 2011 13:02:58 -0400 (EDT) Date: Fri, 7 Oct 2011 18:58:28 +0200 From: Oleg Nesterov Subject: Re: [PATCH v5 3.1.0-rc4-tip 26/26] uprobes: queue signals while thread is singlestepping. Message-ID: <20111007165828.GA32319@redhat.com> References: <20110920115938.25326.93059.sendpatchset@srdronam.in.ibm.com> <20110920120517.25326.57657.sendpatchset@srdronam.in.ibm.com> <1317128626.15383.61.camel@twins> <20110927131213.GE3685@linux.vnet.ibm.com> <20111005180139.GA5704@redhat.com> <20111006054710.GB17591@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20111006054710.GB17591@linux.vnet.ibm.com> Sender: owner-linux-mm@kvack.org List-ID: To: Srikar Dronamraju Cc: Peter Zijlstra , Ingo Molnar , Steven Rostedt , Linux-mm , Arnaldo Carvalho de Melo , Linus Torvalds , Masami Hiramatsu , Hugh Dickins , Christoph Hellwig , Andi Kleen , Thomas Gleixner , Jonathan Corbet , Andrew Morton , Jim Keniston , Roland McGrath , Ananth N Mavinakayanahalli , LKML On 10/06, Srikar Dronamraju wrote: > > The patch (that I sent out as part of v5 patchset) uses per task > pending sigqueue and start queueing the signals when the task > singlesteps. After completion of singlestep, walks thro the pending > signals. Yes, I see. Doesn't look very nice ;) > But I was thinking if I should block signals instead of queueing them in > a different sigqueue. So Idea is to block signals just before the task > enables singlestep and unblock after task disables singlestep. Agreed, this looks much, much better. In both cases the task is current, it is safe to change ->blocked. But please avoid sigprocmask(), we have set_current_blocked(). Oleg. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: email@kvack.org