From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751864AbbJDR2M (ORCPT ); Sun, 4 Oct 2015 13:28:12 -0400 Received: from mail-yk0-f180.google.com ([209.85.160.180]:34358 "EHLO mail-yk0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751539AbbJDR2L (ORCPT ); Sun, 4 Oct 2015 13:28:11 -0400 Date: Sun, 4 Oct 2015 13:28:07 -0400 From: Tejun Heo To: Oleg Nesterov Cc: Andrew Morton , David Woodhouse , Felipe Balbi , Markus Pargmann , linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org Subject: Re: [PATCH 2/3] signal: introduce kernel_signal_stop() to fix jffs2_garbage_collect_thread() Message-ID: <20151004172807.GB19652@htj.duckdns.org> References: <20151003181319.GA1036@redhat.com> <20151003181338.GA1057@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20151003181338.GA1057@redhat.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Oct 03, 2015 at 08:13:38PM +0200, Oleg Nesterov wrote: > jffs2_garbage_collect_thread() can race with SIGCONT and sleep in > TASK_STOPPED state after it was already sent. Add the new helper, > kernel_signal_stop(), which does this correctly. > > Signed-off-by: Oleg Nesterov Reviewed-by: Tejun Heo Thanks. -- tejun