On Monday, August 29, 2005 01:52:51 PM -0400 Jim Rees <[EMAIL PROTECTED]> wrote:

Am I correct in thinking that the global lock is only required for SMP?
If I have a traditional unix kernel that's not pre-emptive while in kernel
mode, can I make the global lock a no-op?

If you're doing a platform port, and there is no chance one thread in AFS code can be interrupted by another thread in AFS code, short of the first thread deliberately sleeping, then yes, you can make the glock a noop.

This is generally the case on non-SMP systems which don't do preemption of kernel code.

Like chas, I suspect the benefit of doing this is marginal, if your OS is capable of running on SMP machines and provides a mutex primitive, you probably should just use it.

_______________________________________________
OpenAFS-devel mailing list
[email protected]
https://lists.openafs.org/mailman/listinfo/openafs-devel

Reply via email to