Re: [PATCH 3/4] ipc/sem.c: convert sem_array.sem_pending to struct list_head

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Manfred Spraul
Date: Saturday, June 7, 2008 - 7:52 am

Nadia Derbey wrote:
Actually - no. I wasn't aware of list_first_entry().
But:
- Looking at list.h: list_first_entry() shouldn't be used on empty lists.
- the loop in update_queue() is complicated enough, some open-coding 
doesn't hurt.

The list_del() poisoning is IMHO efficient enough.

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

Messages in current thread:
Re: [PATCH 3/4] ipc/sem.c: convert sem_array.sem_pending t ..., Manfred Spraul, (Sat Jun 7, 7:52 am)