Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752267AbbFALk3 (ORCPT ); Mon, 1 Jun 2015 07:40:29 -0400 Received: from mail-qg0-f53.google.com ([209.85.192.53]:34658 "EHLO mail-qg0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751483AbbFALkX (ORCPT ); Mon, 1 Jun 2015 07:40:23 -0400 Date: Mon, 1 Jun 2015 07:40:19 -0400 From: Tejun Heo To: yalin wang Cc: Andrew Morton , laijs@cn.fujitsu.com, nacc@linux.vnet.ibm.com, penguin-kernel@i-love.sakura.ne.jp, Linux Kernel Mailing List Subject: Re: Fwd: [RFC] make kthread_worker_fn to be freezable Message-ID: <20150601114019.GA14841@htj.duckdns.org> References: <64da06e6.12ce6.14dae8b205f.Coremail.cn_wyl2003@126.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 858 Lines: 25 Hello, On Mon, Jun 01, 2015 at 06:05:58PM +0800, yalin wang wrote: > I notice that kthread_worker_fn() call try_to_freeze() function, > but it don't make itself to be a freezable kthread, > kthread default behavior is not freezable, we should change it if > want try_to_freeze() work correctly. > > Signed-off-by: yalin wang Whether a kthread worker should be able to freeze or not is to be determined by the owner of the specific kthread. If the kthread is marked freezable, kthread_worker will freeze. If not, it won't. Nacked-by: Tejun Heo Thanks. -- tejun -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/