[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-kernel
Subject:    Basic question about Locking (spinlocks/semaphores)
From:       Richard Guenther <zxmpm11 () student ! uni-tuebingen ! de>
Date:       1997-07-22 12:46:42
[Download RAW message or body]

Hi!

During my last kernel-source-reading session I discovered, that
in binfmt_msic I use the wrong locking strathegy (spinlocks).
I think I have now understand the correct semantics and switched
to a semaphore.

Now there is one question: we have read/write spinlocks, but no
read/write semaphores. Is there any reason (besides 'nobody
implemented these') to dont have them? If not, I will look at
this. (Or could somebody who actually knows of gcc-magic-asm
hack this together in 30min, as I will probably need a week for
this :( ).

PS: There is really missing some documentation about the spinlock
    semantics (like the semaphore documentation, which is good).

Richard.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic