Subject: Re: inter-cpu coherency and kernel data structures
To: Matthew Jacob <mjacob@feral.com>
From: Jason R Thorpe <thorpej@zembu.com>
List: tech-smp
Date: 08/14/2000 10:10:15
On Mon, Aug 14, 2000 at 09:58:50AM -0700, Matthew Jacob wrote:

 > Well, if your ldx_l/stX_c locking is using MBs, then, err, umm, you're
 > covered.

I think the issue is that I need to do the instructions like this:

	1. alpha_mb();
	2. alp->lock_data = 0;
	3. alpha_mb();

Where:

	1. Ensure that store that unlocks the data structure will not
	   happen before the data structure has actually been modified
	   in memory.

	2. Release the lock.

	3. Ensure that the lock is released before anything else happens.

-- 
        -- Jason R. Thorpe <thorpej@zembu.com>