From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933679AbcFTUaM (ORCPT ); Mon, 20 Jun 2016 16:30:12 -0400 Received: from mail-yw0-f194.google.com ([209.85.161.194]:36360 "EHLO mail-yw0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753623AbcFTUaE (ORCPT ); Mon, 20 Jun 2016 16:30:04 -0400 Date: Mon, 20 Jun 2016 16:30:02 -0400 From: Tejun Heo 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 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> User-Agent: Mutt/1.6.1 (2016-04-27) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: 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 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tejun Heo Subject: Re: [PATCH v9 12/12] kthread: Better support freezable kthread workers Date: Mon, 20 Jun 2016 16:30:02 -0400 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 Return-path: Content-Disposition: inline In-Reply-To: <1466075851-24013-13-git-send-email-pmladek@suse.com> Sender: owner-linux-mm@kvack.org 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 List-Id: linux-api@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