From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752067AbdBHVWx (ORCPT ); Wed, 8 Feb 2017 16:22:53 -0500 Received: from mail-wm0-f67.google.com ([74.125.82.67]:33673 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751134AbdBHVWv (ORCPT ); Wed, 8 Feb 2017 16:22:51 -0500 Date: Wed, 8 Feb 2017 22:22:47 +0100 From: Ingo Molnar To: Linus Torvalds Cc: Linux Kernel Mailing List , Andrew Morton , Mike Galbraith , Oleg Nesterov , Peter Zijlstra , Thomas Gleixner Subject: Re: [PATCH 14/53] sched/headers: Move 'struct user_struct' definition and APIs to the new header Message-ID: <20170208212247.GA12173@gmail.com> References: <1486579524-14901-1-git-send-email-mingo@kernel.org> <1486579524-14901-15-git-send-email-mingo@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 * Linus Torvalds wrote: > On Wed, Feb 8, 2017 at 10:44 AM, Ingo Molnar wrote: > > 'struct user_struct' was added to sched.h historically, but it's actually > > entirely independent of task_struct and of scheduler details, so move > > it to its own header. > > Hmm. I wonder if this would make more sense not even under the > "" hierarchy. It has nothing to do with the > scheduling at all, really. > > Small nit and can be left for later. Yeah. Some of the others could be moved to include/linux/ as well, such as: => => => All of these are pretty unrelated to scheduling, they just happen to be about fields that are in task_struct. already exists, it wraps asm/user.h - I suspect the bits can just be appended to it, plus a header guard. Thanks, Ingo