On Thu, 21 Jun 2007, Ingo Molnar wrote:Ok, I'm definitely not going to apply it right now, though. Exactly. The only way to handle that case is to make sure that the person who *gets* the spinlock will slow down. The person who doesn't get it can't do anything at all about the fact that he's locked out. A way to do that (as already mentioned) is to have a "this lock is contended" flag, and have the person who gets the lock do something about it (where the "something" might actually be as simple as saying "When I release a lock that somebody marked as having lots of contention, I will clear the contention flag, and then just delay myself"). Side note: that trivial approach only really helps for a *single* thread that gets it very much (like the example in wait_task_inactive). For true contention with multiple different CPU's that can *all* have the bad behaviour, you do actually need real queueing. 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 |
| Rafael J. Wysocki | [Bug #11215] INFO: possible recursive locking detected ps2 command |
git: | |
| Christian MICHON | Re: MinGW port - initial work uploaded |
| Luiz Fernando N. Capitulino | Libification project (SoC) |
| Linus Torvalds | People unaware of the importance of "git gc"? |
| Jakub Narebski | [RFC] Git User's Survey 2008 |
| Richard Stallman | Real men don't attack straw men |
| Tony Abernethy | Re: What is our ultimate goal?? |
| GVG GVG | ssh_exchange_identification: Connection closed by remote host |
| James Hartley | scp batch mode? |
| Ingo Molnar | Re: [TCP]: TCP_DEFER_ACCEPT causes leak sockets |
| Timo Teräs | Re: xfrm_state locking regression... |
| Ingo Molnar | Re: [bug] stuck localhost TCP connections, v2.6.26-rc3+ |
| Natalie Protasevich | [BUG] New Kernel Bugs |
