lkml.org 
[lkml]   [2011]   [Apr]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/4] export kernel call get_task_comm().
On Tue, Apr 19, 2011 at 06:22:14PM -0700, David Rientjes wrote:
> On Tue, 19 Apr 2011, J Freyensee wrote:
>
> > > > From: J Freyensee <james_p_freyensee@linux.intel.com>
> > > >
> > > > This allows drivers who call this function to be compiled modularly.
> > > > Otherwise, a driver who is interested in this type of functionality
> > > > has to implement their own get_task_comm() call, causing code
> > > > duplication in the Linux source tree.
> > > >
> > > > Signed-off-by: J Freyensee <james_p_freyensee@linux.intel.com>
> > >
> > > Acked-by: David Rientjes <rientjes@google.com>
> > >
> > > There've been some other patchsets proposed recently that need to print a
> > > thread's comm and since /proc/pid/comm can change the comm's of other
> > > threads out from under them, it's necessary to serialize access to it with
> > > task_lock(). This patch certainly makes it easier for modules to do so
> > > correctly, thanks!
> >
> > Thanks for the compliment; it's appreciated. I've made my patch sets
> > independent from one another. And I believe a common consensus (at
> > least with Greg KH, Alan C., Arjan VdV and myself) was achieved that
> > this is a good patch to apply? So maybe this can be applied to the
> > kernel, independent of my other patches, so this will fit your needs?
> >
>
> This patch in particular can probably go through the -mm tree; the last
> activity for get_task_comm() was three years ago (59714d65dfbc
> "get_task_comm(): return the result") which also went through the -mm tree
> and its export is a general service to module authors. Let's cc Andrew
> and see if he'll merge it.

No, let's wait for the other patches to get acceptable before we merge
it. We don't need to add exports when there are no users of it in the
tree. It's not for .39 at this point anyway, so no rush at the moment.

thanks,

greg k-h


\
 
 \ /
  Last update: 2011-04-20 03:47    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site