Re: [PATCH 1/19] MUTEX: Introduce simple mutex implementation
From: Mark Lord
Date: Wed Dec 14 2005 - 18:39:31 EST
Thomas Gleixner wrote:
You can do a full scripted rename of up/down to the mutex API and then
fix up the 100 places used by semaphores manually.
Again, folks, this only works for current in-tree kernel code.
There are huge amounts of kernel code out-of-tree that still use
up/down as (or potentially as) counting semaphores.
Yes, some of that code is closed-source, but most of it is open-source
stuff in people's "queues", such as the network patch-o-matic queue
and other stuff. Lots of open-source out-of-tree drivers, too.
Re-using the existing up()/down() names for a new purpose is
a very very Bad Idea. Removing up()/down() entirely is not quite so bad,
because at least then people will eventually notice the change.
Leaving up()/down() as-is is really the most sensible option.
Cheers
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/