On Thu, 21 Jun 2007, Ingo Molnar wrote:But this is a perfect example of exactly what I'm talking about: THAT CODE IS HORRIBLY BUGGY! It's not the spinlocks that are broken, it's that damn code. What a piece of crap. Anybody who ever waits for a lock by busy-looping over it is BUGGY, dammit! The only correct way to wait for a lock is: (a) try it *once* with an atomic r-m-w (b) loop over just _reading_ it (and something that implies a memory barrier, _not_ "__delay()". Use "cpu_relax()" or "smp_rmb()") (c) rinse and repeat. and code like the above should just be shot on sight. So don't blame the spinlocks or the hardware for crap code. Linus -
| Linus Torvalds | Linux 2.6.27-rc8 |
| Greg KH | [patch 00/71] 2.6.26-stable review |
| Dmitry Torokhov | 2.6.27-rc8+ - first impressions |
| jimmy bahuleyan | Re: Hibernation considerations |
git: | |
| Petr Baudis | [FYI][PATCH] Customizing the WinGit installer |
| Jan Hudec | Re: [PATCH] Move all dashed form git commands to libexecdir |
| Jay Soffian | Re: [PATCH] gitweb: Support caching projects list |
| Mark Levedahl | Allowing override of the default "origin" nickname |
| Richard Stallman | Real men don't attack straw men |
| Leon Dippenaar | New tcp stack attack |
| Luca Dell'Oca | Authenticate squid in Active Directory |
| Todd Pytel | IDE or SCSI virtual disks for VMWare image? |
| Jarek Poplawski | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Matthew Dharm | Re: [RFC] Patch to option HSO driver to the kernel |
| Ingo Molnar | Re: [bug] stuck localhost TCP connections, v2.6.26-rc3+ |
| David Miller | Re: [GIT PULL] [IPV6] COMPAT: Fix SSM applications on 64bit kernels. |
