Matthew Dillon wrote:> > A patch is appended. lwkt_token_is_stale(lwkt_tokref_t) detects if the token was acquired by another thread while the thread was sleeping. I don't care about tokrefs, instead the granularity is a thread, so that recursive calls to acquire a token within the same thread DO NOT stale out a token. Furthermore the code for UP and SMP is now basically the same, except for spin-locks or preemption issues. That is, I keep a per-thread count instead of the globalcount on UP and maintain thread ownership as well. I noticed that _lwkt_trytokref and _lwkt_gettokref were basically using the same code (it was copy & pasted), so I unified that as well. Regards, Michael
| David Miller | Re: Slow DOWN, please!!! |
| Greg Kroah-Hartman | [PATCH 013/196] Documentation: Replace obsolete "driverfs" with "sysfs". |
| James Bottomley | Re: Integration of SCST in the mainstream Linux kernel |
| Jeff Garzik | Re: [RFC] Heads up on sys_fallocate() |
git: | |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| Linus Torvalds | Re: [GIT]: Networking |
| Andrew Morton | Re: [BUG] New Kernel Bugs |
