On Fri, 30 May 2008, Ulrich Drepper wrote:How about you post your code. Because your questions seem to be total and utter crap. Sure you can. By looking at the *other*data* that isn't atomic. So when doing a "write_unlock()" (or whatever you call it - for the kernel calls it "up_write()") you can look at the non-atomic write counts to decide whether there are others. Also note how you can use 64-bit atomic ops to do that all in user space, without actually requiring 64-bit futex support - as long as the bits that matter for waking (like "was there more than one pending writer") fit in the one 32-bit word. Again, that's not something that needs to be in the *atomic* part. It's unquestionable that a rwlock is more than 32 bits, but what I question is whether you need all those extra bits to be under futex Uli, you're not even trying any more. NO, you don't have just one bit. You have as many bits as you want. It's just that only 32 of the bits will be relevant for FUTEX_WAIT_OP etc. Linus --
| Davide Libenzi | Re: [patch 7/8] fdmap v2 - implement sys_socket2 |
| Bart Van Assche | Integration of SCST in the mainstream Linux kernel |
| Greg Kroah-Hartman | [PATCH 005/196] Chinese: add translation of SubmittingDrivers |
| Mariusz Kozlowski | [KJ PATCHES] mostly kmalloc + memset conversion to k[cz]alloc |
git: | |
| KOSAKI Motohiro | [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin" |
| Stefan Richter | Re: [GIT]: Networking |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Gerrit Renker | [PATCH 0/37] dccp: Feature negotiation - last call for comments |
