From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qk0-f200.google.com (mail-qk0-f200.google.com [209.85.220.200]) by kanga.kvack.org (Postfix) with ESMTP id 303B5828E1 for ; Mon, 20 Jun 2016 16:30:04 -0400 (EDT) Received: by mail-qk0-f200.google.com with SMTP id l81so407095496qke.3 for ; Mon, 20 Jun 2016 13:30:04 -0700 (PDT) Received: from mail-yw0-x244.google.com (mail-yw0-x244.google.com. [2607:f8b0:4002:c05::244]) by mx.google.com with ESMTPS id w16si18597720yww.15.2016.06.20.13.30.03 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 Jun 2016 13:30:03 -0700 (PDT) Received: by mail-yw0-x244.google.com with SMTP id i12so2906876ywa.0 for ; Mon, 20 Jun 2016 13:30:03 -0700 (PDT) Date: Mon, 20 Jun 2016 16:30:02 -0400 From: Tejun Heo Subject: Re: [PATCH v9 12/12] kthread: Better support freezable kthread workers Message-ID: <20160620203002.GD3262@mtj.duckdns.org> References: <1466075851-24013-1-git-send-email-pmladek@suse.com> <1466075851-24013-13-git-send-email-pmladek@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1466075851-24013-13-git-send-email-pmladek@suse.com> Sender: owner-linux-mm@kvack.org List-ID: To: Petr Mladek Cc: Andrew Morton , Oleg Nesterov , Ingo Molnar , Peter Zijlstra , Steven Rostedt , "Paul E. McKenney" , Josh Triplett , Thomas Gleixner , Linus Torvalds , Jiri Kosina , Borislav Petkov , Michal Hocko , linux-mm@kvack.org, Vlastimil Babka , linux-api@vger.kernel.org, linux-kernel@vger.kernel.org On Thu, Jun 16, 2016 at 01:17:31PM +0200, Petr Mladek wrote: > This patch allows to make kthread worker freezable via a new @flags > parameter. It will allow to avoid an init work in some kthreads. > > It currently does not affect the function of kthread_worker_fn() > but it might help to do some optimization or fixes eventually. > > I currently do not know about any other use for the @flags > parameter but I believe that we will want more flags > in the future. > > Finally, I hope that it will not cause confusion with @flags member > in struct kthread. Well, I guess that we will want to rework the > basic kthreads implementation once all kthreads are converted into > kthread workers or workqueues. It is possible that we will merge > the two structures. > > Signed-off-by: Petr Mladek Acked-by: Tejun Heo Thanks. -- tejun -- 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/ . Don't email: email@kvack.org