> Taking the lock is going to transiation the cacheline to exclusive. If > the next locker tries to take the lock, they transfer the cacheline and > exclusive access and fail. If they have already tried to take the lock > earlier, they might only request a readonly state, but it still requires > a cacheline transfer (which is the expensive part). the "which is the expensive part" isn't entirely true on modern hardware (and for sure not on multicore systems); due to various bus snooping tricks and other "pass-the-cacheline" tricks this is relatively cheap; not free obviously but not nearly as expensive as the exclusive part. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- References:
- Re: [patch] increase spinlock-debug looping timeouts (write_lock and NMI)
- From: Dave Olson <[email protected]>
- Re: [patch] increase spinlock-debug looping timeouts (write_lock and NMI)
- From: Andrew Morton <[email protected]>
- Re: [patch] increase spinlock-debug looping timeouts (write_lock and NMI)
- From: Nick Piggin <[email protected]>
- Re: [patch] increase spinlock-debug looping timeouts (write_lock and NMI)
- From: Ingo Molnar <[email protected]>
- Re: [patch] increase spinlock-debug looping timeouts (write_lock and NMI)
- From: Nick Piggin <[email protected]>
- Re: [patch] increase spinlock-debug looping timeouts (write_lock and NMI)
- From: Ingo Molnar <[email protected]>
- Re: [patch] increase spinlock-debug looping timeouts (write_lock and NMI)
- From: Nick Piggin <[email protected]>
- Re: [patch] increase spinlock-debug looping timeouts (write_lock and NMI)
- From: Arjan van de Ven <[email protected]>
- Re: [patch] increase spinlock-debug looping timeouts (write_lock and NMI)
- From: Nick Piggin <[email protected]>
- Re: [patch] increase spinlock-debug looping timeouts (write_lock and NMI)
- Prev by Date: Re: [PATCH] Unify CONFIG_LBD and CONFIG_LSF handling
- Next by Date: Re: [PATCH] ide: disable dma for transcend CF
- Previous by thread: Re: [patch] increase spinlock-debug looping timeouts (write_lock and NMI)
- Next by thread: Re: [patch] increase spinlock-debug looping timeouts (write_lock and NMI)
- Index(es):