On 11/16, Andrew Morton wrote: > > On Sun, 11 Nov 2012 19:27:44 +0100 > Oleg Nesterov <o...@redhat.com> wrote: > > > lib/percpu-rwsem.c | 35 +++++++++++++++++++++++++++++++++-- > > y'know, this looks like a great pile of useless bloat for single-CPU > machines. Maybe add a CONFIG_SMP=n variant which simply calls the > regular rwsem operations?
Yes, I thought about this and probably I'll send the patch... But note that the regular down_read() won't be actually faster if there is no writer, and it doesn't allow to add other features. I'll try to think, perhaps it would be enough to add a couple of "ifdef CONFIG_SMP" into this code, say, to avoid __percpu. Oleg. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/