Re: [Stable-review] [2/3] mm: fix up some user-visible effects of the stack guard page

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Willy Tarreau
Date: Friday, August 20, 2010 - 1:34 pm

On Fri, Aug 20, 2010 at 12:43:28PM -0700, Linus Torvalds wrote:

I've had to convert normal linked lists to a dual linked list for a project
of mine in the past, and for the same reason I could not use the lists how
we use them in Linux. However I found an interesting tradeoff which consists
in having only the ->prev list circular but keep the ->next one null-
terminated.

In the end, the API is not much different. A few tests just on the ->next
pointer at some places, but you can still use ->prev everywhere to find
the list tail, for inserting and removing. And overall that was pretty
convenient. It was a lot better than the simple linked list and almost
as easy to use as the circular ones.

Just my 2 cents,
Willy

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [Stable-review] [2/3] mm: fix up some user-visible eff ..., Willy Tarreau, (Fri Aug 20, 1:34 pm)