[lkml]   [2008]   [Mar]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 2/2] cgroup: switch to proc_create()
Paul Menage wrote:
> On Mon, Mar 10, 2008 at 12:30 AM, Li Zefan <> wrote:
>> There is a race between create_proc_entry() and the assignment
>> of file ops. proc_create() is invented to fix it.
>> Signed-off-by: Li Zefan <>
> Acked-by: Paul Menage <>
> Doesn't seem to be a serious race since there's nothing in userspace
> at this point to read the file. But replacing four lines with one is
> generally a good thing.

Yes I know, it's a slight race in case of modular code, but the aim is
to replace all the use of create_proc_entry() with proc_create(). :)

> Paul

 \ /
  Last update: 2008-03-11 00:45    [W:0.024 / U:0.760 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site