Re: 64-bit ppc rwsem

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Benjamin Herrenschmidt
Date: Monday, August 23, 2010 - 3:01 pm

On Mon, 2010-08-23 at 15:44 +0200, Arnd Bergmann wrote:

I've seen drivers in the past do trylocks at interrupt time ... tho I
agree it sucks.


It depends how sensitive rwsems are. 

The "generic" variant based on atomic's and cmpxchg on powerpc is
sub-optimal in the sense that it has stronger memory barriers that would
be necessary (atomic_inc_return for example has both acquire and
release).

But that vs. one more pile of inline asm, we decided it wasn't hot
enough a spot for us to care back then.

Cheers,
Ben.

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

Messages in current thread:
[GIT] Sparc, David Miller, (Tue Aug 17, 6:03 pm)
Re: [GIT] Sparc, Linus Torvalds, (Tue Aug 17, 6:31 pm)
Re: [GIT] Sparc, Linus Torvalds, (Tue Aug 17, 6:59 pm)
Re: [GIT] Sparc, David Miller, (Tue Aug 17, 7:12 pm)
Re: [GIT] Sparc, David Miller, (Tue Aug 17, 7:14 pm)
Re: [GIT] Sparc, Al Viro, (Tue Aug 17, 7:50 pm)
64-bit ppc rwsem (was: Re: [GIT] Sparc), Benjamin Herrenschmidt, (Tue Aug 17, 9:38 pm)
Re: 64-bit ppc rwsem (was: Re: [GIT] Sparc), Benjamin Herrenschmidt, (Tue Aug 17, 10:03 pm)
Re: 64-bit ppc rwsem, David Miller, (Tue Aug 17, 10:28 pm)
Re: 64-bit ppc rwsem, Sam Ravnborg, (Tue Aug 17, 10:39 pm)
Re: 64-bit ppc rwsem, David Miller, (Tue Aug 17, 10:48 pm)
Re: 64-bit ppc rwsem, Benjamin Herrenschmidt, (Wed Aug 18, 10:23 pm)
Re: 64-bit ppc rwsem, David Miller, (Wed Aug 18, 10:29 pm)
Re: 64-bit ppc rwsem, Benjamin Herrenschmidt, (Thu Aug 19, 3:24 am)
[PATCH 2/2] rwsem: Move powerpc atomic-long based implemen ..., Benjamin Herrenschmidt, (Thu Aug 19, 10:14 pm)
[PATCH 1/2] powerpc: Make rwsem use "long" type, Benjamin Herrenschmidt, (Thu Aug 19, 10:14 pm)
Re: 64-bit ppc rwsem, Arnd Bergmann, (Mon Aug 23, 6:44 am)
Re: 64-bit ppc rwsem, Benjamin Herrenschmidt, (Mon Aug 23, 3:01 pm)
Re: 64-bit ppc rwsem, David Miller, (Mon Aug 23, 3:18 pm)
Re: 64-bit ppc rwsem, Benjamin Herrenschmidt, (Mon Aug 23, 6:31 pm)
Re: [PATCH 2/2] rwsem: Move powerpc atomic-long based impl ..., Benjamin Herrenschmidt, (Mon Aug 23, 6:32 pm)
Re: 64-bit ppc rwsem, Arnd Bergmann, (Tue Aug 24, 5:06 am)