Messages in this thread | | | Date | Fri, 19 Nov 1999 12:19:49 -0800 (PST) | From | Linus Torvalds <> | Subject | Re: [Patch] shm bug introduced with pagecache in 2.3.11 |
| |
On Fri, 19 Nov 1999, Benjamin C.R. LaHaise wrote: > > Sure. Does the following sound? > > void down_read(struct rw_semaphore *sem); > void down_write(struct rw_semaphore *sem); > void up_read(struct rw_semaphore *sem); > void up_write(struct rw_semaphore *sem);
Looks fine.
> Looking at existing semaphores and rwlocks, it looks like a quick and > painless beast to create.
Yeah, sure.
Especially considering that the current semaphore code has been basically re-written three times to get it stable ;)
But yes, mixing judicious amounts of the current semaphore code together with the rw-spinlock code should result in something working.
"Just add brains".
Linus
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |