Re: [PATCH] arch/tile: fix rwlock so would-be write lockers don't block new readers

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Chris Metcalf
Date: Tuesday, November 23, 2010 - 2:02 pm

On 11/22/2010 8:36 PM, Cypher Wu wrote:

This should be OK when it happens (other than starving out the readers, but
that was the decision made by doing a ticket lock in the first place). 
Even if we wrap around 255 back to zero on the tickets, the ticket queue
will work correctly.  The key is not to need more than 256 concurrent write
lock waiters, which we don't.

-- 
Chris Metcalf, Tilera Corp.
http://www.tilera.com

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

Messages in current thread:
Kernel rwlock design, Multicore and IGMP, Cypher Wu, (Thu Nov 11, 6:49 am)
Re: Kernel rwlock design, Multicore and IGMP, Eric Dumazet, (Thu Nov 11, 8:23 am)
Re: Kernel rwlock design, Multicore and IGMP, Eric Dumazet, (Thu Nov 11, 8:32 am)
Re: Kernel rwlock design, Multicore and IGMP, Cypher Wu, (Thu Nov 11, 8:32 pm)
Re: Kernel rwlock design, Multicore and IGMP, Américo Wang, (Thu Nov 11, 11:28 pm)
Re: Kernel rwlock design, Multicore and IGMP, Américo Wang, (Fri Nov 12, 12:13 am)
Re: Kernel rwlock design, Multicore and IGMP, Eric Dumazet, (Fri Nov 12, 12:27 am)
Re: Kernel rwlock design, Multicore and IGMP, Américo Wang, (Fri Nov 12, 1:19 am)
Re: Kernel rwlock design, Multicore and IGMP, Yong Zhang, (Fri Nov 12, 2:09 am)
Re: Kernel rwlock design, Multicore and IGMP, Américo Wang, (Fri Nov 12, 2:18 am)
Re: Kernel rwlock design, Multicore and IGMP, Eric Dumazet, (Fri Nov 12, 2:22 am)
Re: Kernel rwlock design, Multicore and IGMP, Américo Wang, (Fri Nov 12, 2:33 am)
Re: Kernel rwlock design, Multicore and IGMP, Cypher Wu, (Fri Nov 12, 4:06 am)
Re: Kernel rwlock design, Multicore and IGMP, Cypher Wu, (Fri Nov 12, 4:10 am)
Re: Kernel rwlock design, Multicore and IGMP, Eric Dumazet, (Fri Nov 12, 4:25 am)
Re: Kernel rwlock design, Multicore and IGMP, Américo Wang, (Fri Nov 12, 11:28 pm)
Re: Kernel rwlock design, Multicore and IGMP, Américo Wang, (Fri Nov 12, 11:35 pm)
Re: Kernel rwlock design, Multicore and IGMP, Peter Zijlstra, (Sat Nov 13, 3:52 pm)
Re: Kernel rwlock design, Multicore and IGMP, Peter Zijlstra, (Sat Nov 13, 3:53 pm)
Re: Kernel rwlock design, Multicore and IGMP, Peter Zijlstra, (Sat Nov 13, 3:54 pm)
Re: Kernel rwlock design, Multicore and IGMP, Chris Metcalf, (Sat Nov 13, 4:03 pm)
Re: Kernel rwlock design, Multicore and IGMP, Cypher Wu, (Mon Nov 15, 12:22 am)
Re: Kernel rwlock design, Multicore and IGMP, Cypher Wu, (Mon Nov 15, 4:18 am)
Re: Kernel rwlock design, Multicore and IGMP, Eric Dumazet, (Mon Nov 15, 4:31 am)
Re: Kernel rwlock design, Multicore and IGMP, Cypher Wu, (Tue Nov 16, 6:30 pm)
Re: Kernel rwlock design, Multicore and IGMP, Eric Dumazet, (Tue Nov 16, 9:43 pm)
Re: [PATCH] arch/tile: fix rwlock so would-be write locker ..., Chris Metcalf, (Tue Nov 23, 2:02 pm)