From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jes Sorensen Date: Fri, 04 Apr 2003 05:04:42 +0000 Subject: Re: [Linux-ia64] spin_unlock() problem Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-ia64@vger.kernel.org >>>>> "Jes" = Jes Sorensen writes: Jes> Hi, I have been tracing a problem with tty->count hitting an Jes> unidenfied state and I am starting to ponder if our current Jes> spin_unlock() implementation is sufficient. [snip] Jes> Consider the following example: Actually that example isn't valid, this one should be: cpu1() { spin_lock(&bleh); *a = foo; spin_unlock(&bleh); *b = bar; } cpu2() { if (*b = bar) boink(*a); } Jes