Messages in this thread | | | Subject | Re: smp overhead, and rwlocks considered harmful | From | "David S. Miller" <> | Date | 22 Mar 2003 19:39:31 -0800 |
| |
On Sat, 2003-03-22 at 17:58, Andrew Morton wrote: > I've always been a bit skeptical about rwlocks - if you're holding the lock > for long enough for a significant amount of reader concurrency, you're > holding it for too long. eg: tasklist_lock.
I totally agree with you Andrew, on modern SMP systems rwlocks are basically worthless. I think we should kill them off and convert all instances to spinlocks or some better primitive (perhaps a more generalized big reader lock, Roman Zippel had something...)
-- David S. Miller <davem@redhat.com> - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |