Re: [rfc] SLOB memory ordering issue

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Matt Mackall
Date: Wednesday, October 15, 2008 - 10:58 am

On Wed, 2008-10-15 at 10:36 -0700, Linus Torvalds wrote:

Right. This is the 99.9% case and is why we should definitely not put an
additional barrier in the allocator.

Lockless users are already on their own with regard to memory ordering
issues, so it makes sense for them to absorb the (often nil) incremental
cost of ensuring object initialization gets flushed.

I feel like we ought to document this in the SLAB API, but at the same
time, I think we'll scare more people than we'll enlighten.

-- 
Mathematics is the supreme nostalgia of our time.

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

Messages in current thread:
[rfc] SLOB memory ordering issue, Nick Piggin, (Wed Oct 15, 9:34 am)
Re: [rfc] SLOB memory ordering issue, Nick Piggin, (Wed Oct 15, 9:46 am)
Re: [rfc] SLOB memory ordering issue, Matt Mackall, (Wed Oct 15, 9:54 am)
Re: [rfc] SLOB memory ordering issue, Nick Piggin, (Wed Oct 15, 10:10 am)
Re: [rfc] SLOB memory ordering issue, Linus Torvalds, (Wed Oct 15, 10:33 am)
Re: [rfc] SLOB memory ordering issue, Linus Torvalds, (Wed Oct 15, 10:36 am)
Re: [rfc] SLOB memory ordering issue, Nick Piggin, (Wed Oct 15, 10:45 am)
Re: [rfc] SLOB memory ordering issue, Matt Mackall, (Wed Oct 15, 10:58 am)
Re: [rfc] SLOB memory ordering issue, Linus Torvalds, (Wed Oct 15, 11:03 am)
Re: [rfc] SLOB memory ordering issue, Nick Piggin, (Wed Oct 15, 11:06 am)
Re: [rfc] SLOB memory ordering issue, Nick Piggin, (Wed Oct 15, 11:12 am)
Re: [rfc] SLOB memory ordering issue, Matt Mackall, (Wed Oct 15, 11:19 am)
Re: [rfc] SLOB memory ordering issue, Linus Torvalds, (Wed Oct 15, 11:26 am)
Re: [rfc] SLOB memory ordering issue, Linus Torvalds, (Wed Oct 15, 11:29 am)
Re: [rfc] SLOB memory ordering issue, Nick Piggin, (Wed Oct 15, 11:35 am)
Re: [rfc] SLOB memory ordering issue, Linus Torvalds, (Wed Oct 15, 11:43 am)
Re: [rfc] SLOB memory ordering issue, Nick Piggin, (Wed Oct 15, 11:50 am)
Re: [rfc] SLOB memory ordering issue, Nick Piggin, (Wed Oct 15, 12:19 pm)
Re: [rfc] SLOB memory ordering issue, Linus Torvalds, (Wed Oct 15, 12:47 pm)
Re: [rfc] SLOB memory ordering issue, Linus Torvalds, (Fri Oct 17, 1:29 pm)