Re: [PATCH RFC 02/12] x86/ticketlock: convert spin loop to C

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: H. Peter Anvin
Date: Friday, August 6, 2010 - 2:09 pm

On 08/06/2010 01:33 PM, Jeremy Fitzhardinge wrote:

In this particular case, though, I would somewhat expect the more 
conventional:

while (inc.tickets.head != inc.tickets.tail) {
	cpu_relax();
	inc.tickets.head = ACCESS_ONCE(lock->tickets_head);
}

	-hpa
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH RFC 00/12] X86 ticket lock cleanups and improvements, Jeremy Fitzhardinge, (Fri Jul 16, 6:03 pm)
[PATCH RFC 06/12] x86/ticketlock: make __ticket_spin_trylo ..., Jeremy Fitzhardinge, (Fri Jul 16, 6:03 pm)
[PATCH RFC 04/12] x86/ticketlock: make large and small tic ..., Jeremy Fitzhardinge, (Fri Jul 16, 6:03 pm)
[PATCH RFC 02/12] x86/ticketlock: convert spin loop to C, Jeremy Fitzhardinge, (Fri Jul 16, 6:03 pm)
[PATCH RFC 05/12] x86/ticketlock: make __ticket_spin_lock ..., Jeremy Fitzhardinge, (Fri Jul 16, 6:03 pm)
Re: [PATCH RFC 02/12] x86/ticketlock: convert spin loop to C, Jeremy Fitzhardinge, (Mon Aug 2, 8:17 am)
Re: [PATCH RFC 02/12] x86/ticketlock: convert spin loop to C, Jeremy Fitzhardinge, (Fri Aug 6, 7:53 am)
Re: [PATCH RFC 02/12] x86/ticketlock: convert spin loop to C, Jeremy Fitzhardinge, (Fri Aug 6, 1:33 pm)
Re: [PATCH RFC 02/12] x86/ticketlock: convert spin loop to C, H. Peter Anvin, (Fri Aug 6, 2:09 pm)
Re: [PATCH RFC 02/12] x86/ticketlock: convert spin loop to C, Jeremy Fitzhardinge, (Fri Aug 6, 3:03 pm)