Hi Hubertus,
I just had a quick look on your semaphore code. As far as I can see you
do no re-check of the userspace semaphore counter while going to sleep
on your kernel semaphore. But this way you may loose synchronization
between the kernel semaphore and the user-space semaphore counter if
more than two processes are involved. Or did I miss some tricky form
of how you avoided this problem?
Martin Wirth
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Thu Feb 28 2002 - 21:00:36 EST