From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751727Ab1HPR2b (ORCPT ); Tue, 16 Aug 2011 13:28:31 -0400 Received: from mx1.redhat.com ([209.132.183.28]:45700 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751335Ab1HPR2a (ORCPT ); Tue, 16 Aug 2011 13:28:30 -0400 Date: Tue, 16 Aug 2011 19:25:36 +0200 From: Oleg Nesterov To: Matt Fleming Cc: linux-kernel@vger.kernel.org, Paul Mundt Subject: Re: [PATCH 26/41] sh: No need to reset handler if SA_ONESHOT Message-ID: <20110816172536.GE29190@redhat.com> References: <1313071035-12047-1-git-send-email-matt@console-pimps.org> <1313071035-12047-27-git-send-email-matt@console-pimps.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1313071035-12047-27-git-send-email-matt@console-pimps.org> 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 08/11, Matt Fleming wrote: > > get_signal_to_deliver() already resets the signal handler if > SA_ONESHOT is set in ka->sa.sa_flags, there's no need to do it again > in handle_signal(). Furthermore, because we were modifying > ka->sa.sa_handler without holding ->sighand->siglock there's the > potential we can race with another thread if it modifies the signal > handlers. Again ;) the patch is fine, the changelog is not right. Oleg.