lkml.org 
[lkml]   [2006]   [Aug]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [RFC][PATCH] ps command race fix take2 [1/4] list token
From
Date
KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> writes:
>
> listtoken , a helper for walking a list by intermittent access.
>
> When we walk a list intermittently and the list is being modified at the
> same time, it's hard to remember our position in it.
>
> With this list token, a user can remember where he is reading by inserting
> a token in the list.

I think the header/code needs much more comments so that other people
can still make sense of it later. Even with the commit log it's not
quite clear how it works.

Also locking needs to be explained. I suppose only one user is allowed
to use a token at one time?

But overall it's a good idea to have a generic facility like this.
I suppose it will be a more common problem in the future.

-Andi
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-08-22 13:09    [W:0.101 / U:0.280 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site