From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com ([209.132.183.28]:44984 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727941AbeKITBK (ORCPT ); Fri, 9 Nov 2018 14:01:10 -0500 Date: Fri, 9 Nov 2018 10:21:24 +0100 From: Oleg Nesterov To: Chanho Min Cc: "Rafael J. Wysocki" , Pavel Machek , Len Brown , Andrew Morton , "Eric W. Biederman" , Christian Brauner , Anna-Maria Gleixner , Alexander Viro , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Seungho Park , Inkyu Hwang , Donghwan Jung , Jongsung Kim Subject: Re: [PATCH] exec: make de_thread() freezable Message-ID: <20181109092123.GA29945@redhat.com> References: <1541752656-12857-1-git-send-email-chanho.min@lge.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1541752656-12857-1-git-send-email-chanho.min@lge.com> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On 11/09, Chanho Min wrote: > > @@ -1083,7 +1084,7 @@ static int de_thread(struct task_struct *tsk) > while (sig->notify_count) { > __set_current_state(TASK_KILLABLE); > spin_unlock_irq(lock); > - schedule(); > + freezable_schedule(); Thanks, but please note another schedule() in "if (!thread_group_leader(tsk))" branch, we probably want to change it too? Oleg.