Srikanth Vishwanathan wrote: > > Replacing alpha semaphores with beta semaphores should be pretty simple. > The only functions needed are: > > b_owns_sema > b_psema > b_vsema > > In fact, it makes the implementation a lot simpler by getting rid of the > hash tables. OpenAFS already uses beta semaphores in Rx. > > I found this doc that talks about beta semaphores and sleep/wakeup > synchronization. > > >http://atwnt911.external.hp.com/dspp/files/unprotected/Drivers/Docs/Refs/ddGuide/Chap04.pdf
Thanks for the reference. The problem is the alpha semaphore this is in the current code is for the "VM Empire". Earlier versions of HP UX had four Empires. Three of the four have been replaced in later versions of HP-UX. The AFS routines in osi_vnodeops.c where using the vmemp_lockx and friends to lock on the VM Empire. The question is not so much how to use a beta semaphore, but rather what beta semaphore is the system using instead for the VM? > > Srikanth. -- Douglas E. Engert <[EMAIL PROTECTED]> Argonne National Laboratory 9700 South Cass Avenue Argonne, Illinois 60439 (630) 252-5444 _______________________________________________ OpenAFS-devel mailing list [EMAIL PROTECTED] https://lists.openafs.org/mailman/listinfo/openafs-devel
