Re: [PATCH] rw_semaphores, optimisations try #3

David Howells (dhowells@warthog.cambridge.redhat.com)
Tue, 24 Apr 2001 17:37:13 +0100


Linus Torvalds <torvalds@transmeta.com> wrote:
> - nobody will look up the list because we do have the spinlock at this
> point, so a destroyed list doesn't actually _matter_ to anybody

I suppose that it'll be okay, provided I take care not to access a block for a
task I've just woken up.

> - list_remove_between() doesn't care about the integrity of the entries
> it destroys. It only uses, and only changes, the entries that are still
> on the list.

True. Okay, I can change it to use that.

David
-
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/