From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Williamson Date: Mon, 04 Aug 2003 18:49:24 +0000 Subject: Re: [PATCH] New CMC/CPE polling 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 "Luck, Tony" wrote: > > I think that there are some race conditions around the setting/clearing > of cmc_polling_enabled. > Tony, You might be right on the clearing side, I think moving it down a couple lines and disabling local interrupts would eliminate the potential hole though. Something like this: ia64_mca_cmc_int_caller(...) { ... smp_call_function(ia64_mca_cmc_vector_enable, NULL, 1, 0); local_irq_disable(); ia64_mca_cmc_vector_enable(NULL); cmc_polling_enabled = 0; ... Does that address the race you were looking at? I don't see one on the setting end, could you be more specific? The spinlock feels like it does the trick to me. Thanks for the comments, Alex -- Alex Williamson HP Linux & Open Source Lab