Re: [PATCH 2.6.13] lockless pagecache 2/7

From: Nick Piggin (nickpiggin_at_yahoo.com.au)
Date: 09/03/05

  • Next message: Adrian Bunk: "[2.6 patch] IrDA prototype fixes"
    Date:	Sat, 03 Sep 2005 11:40:59 +1000
    To: Alan Cox <alan@lxorguk.ukuu.org.uk>
    
    

    Alan Cox wrote:

    >>but I suspect that SMP isn't supported on those CPUs without ll/sc,
    >>and thus an atomic_cmpxchg could be emulated by disabling interrupts.
    >
    >
    > It's obviously emulatable on any platform - the question is at what
    > cost. For x86 it probably isn't a big problem as there are very very few
    > people who need to build for 386 any more and there is already a big
    > penalty for such chips.
    >
    >

    Thanks Alan, Dave, others.

    We'll see how things go. I'm fairly sure that for my usage it will
    be a win even if it is costly. It is replacing an atomic_inc_return,
    and a read_lock/read_unlock pair.

    But if it does one day get merged, and proves to be very costly on
    some architectures then we'll need to be careful about where it gets
    used.

    Nick

    -- 
    SUSE Labs, Novell Inc.
    Send instant messages to your online friends http://au.messenger.yahoo.com 
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at  http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at  http://www.tux.org/lkml/
    

  • Next message: Adrian Bunk: "[2.6 patch] IrDA prototype fixes"

    Relevant Pages

    • RE: RFD: Kernel release numbering
      ... What I have in mind is that we have a ... real 2.6 stable release maintainer. ... Alan Cox ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH 2.4.28-pre4-bk6] delkin_cb: new driver for Cardbus IDE CF adaptor
      ... Alan Cox wrote: ... ide-cs does seem to be reliable, ... (hdparm keeper & the original "Linux IDE Guy") ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Linux Incompatibility List
      ... Alan Cox wrote: ... extend our testing into the ISV space, and how to supply useful data. ... especially if we could capture software info also. ... To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)
    • [git patches] 2.6.x libata updates
      ... Alan Cox: ... Andrew Morton: ... Jeff Garzik: ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [2.6 patch] i386: always use 4k stacks
      ... On Monday 14 November 2005 14:49, Alan Cox wrote: ... >> This will break ndiswrapper. ... respect Windows stack limits. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)