Re: [rfc] SLOB memory ordering issue

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

On Thu, 2008-10-16 at 03:34 +1100, Nick Piggin wrote:

Do you have a failure scenario in mind?

First, it's a categorical mistake for another CPU to be looking at the
contents of an object unless it knows that it's in an allocated state.

For another CPU to receive that knowledge (by reading a causally-valid
pointer to it in memory), a memory barrier has to occur, no?

-- 
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)