[493] in Info-AFS_Redistribution
SMP locking in AFS 3.1
daemon@ATHENA.MIT.EDU (epeisach@athena.mit.edu)
Sun Dec 15 13:38:23 1991
From: epeisach@athena.mit.edu
Date: Sun, 15 Dec 91 13:08:23 -0500
To: info-afs@transarc.com
I am about to try running AFS 3.1 on a VAX9000 with two processors
(SMP). I have already debugged the socket locking that is needed in
afs_osinet.c on a machine with one processor and a similar kernel
configuration. From looking at the code, I feel that the afs layer looks
reasonably SMP safe, (but I will have to test).
What I am concerned with is the rx layer. I think there are many tables
and such which rely on NETPRI to protect the tables during accesses. I
was thinking of changing the NETPRI macro to one that will lock for a
single processor at a time. I'm not sure if this is the best way to go
about it, but it looks like it might work.
I don't know if I will run into trouble, but the code makes me wary.
Anyone have their own opinions or has anyone done anything similar?
Ezra Peisach
MIT Information Systems