Re: [patch 10/15] Generic Mutex Subsystem, mutex-migration-helper-core.patch

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

 



On Mon, 19 Dec 2005, Christoph Hellwig wrote:

> On Mon, Dec 19, 2005 at 02:38:37AM +0100, Ingo Molnar wrote:
> >
> > introduce the mutex_debug type, and switch the semaphore APIs to it in a
> > type-sensitive way. Plain semaphores will still use the proper
> > arch-semaphore calls.
>
> I think we shouldn't introduce this one.  It just encourages people to do
> really things.  Everything else in the patchseries looks sensible to me.

I believe that Ingo is adding the "arch_semaphore" temporarily mainly for
debugging. From Ingo's 00/15 email:

   once all semaphores have been safely categorized and converted to one
   group or another, and all out-of-tree codebases are fixed and a
   deprecation period has passed, we can rename arch_semaphores back to
   'struct semaphore'.

The arch_semaphore is not for a global change or to be what we call
semaphores from now on.  It is used as a place marker for debugging, until
we feel comfortable that we got all the places that need to be mutexes.
So with this arch_semaphore, we can hit a debug option that turns all non
arch_semaphores into mutexes and if it runs fine, we know we can change
them from semaphores to mutexes.

So once the system has been audit enuough, we remove both the mutex_debug
and the arch_semaphores, where all the remaining arch_semaphores become
semaphores, and those semaphores that were not arch_semaphores should have
become full mutexes.

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