Re: [patch 05/15] Generic Mutex Subsystem, mutex-core.patch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2005-12-19 at 02:37 +0100, Ingo Molnar wrote:
> +static inline void
> +__mutex_wakeup_waiter(struct mutex *lock __IP_DECL__)
> +{
> +       struct mutex_waiter *waiter;
> +
> +       SMP_DEBUG_WARN_ON(!spin_is_locked(&lock->wait_lock));
> +       DEBUG_WARN_ON(list_empty(&lock->wait_list));
> +
> +       /*
> +        * Get the first entry from the wait-list:
> +        */
> +       waiter = list_entry(lock->wait_list.next, struct mutex_waiter,
> list);
> +

Any thought about adding priorities to the queue here? Maybe another
time we can add the plist?  But maybe I'm getting ahead of myself.

-- Steve


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

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux