lkml.org 
[lkml]   [2007]   [Oct]   [2]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateTue, 2 Oct 2007 04:15:29 -0700 (PDT)
FromJames Morris <>
SubjectRe: [TOMOYO 05/15](repost) Domain transition handler functions.
On Tue, 2 Oct 2007, Kentaro Takeda wrote:

> +
> +	mb(); /* Instead of using spinlock. */
> +	ptr = domain_initializer_list;
> +	if (ptr) {
> +		while (ptr->next)
> +			ptr = ptr->next;
> +		ptr->next = new_entry;
> +	} else
> +		domain_initializer_list = new_entry;
> +

Please use standard kernel list handling, per include/linux/list.h

Why do you need to avoid spinlocks for these manipulations?



- James
-- 
James Morris
<jmorris@namei.org>
-
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: 2007-10-02 13:19    [from the cache]
©2003-2008