Re: [PATCH 2/3] relay: Fix race condition which occurs when reading across CPUs.

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Pekka Enberg <penberg@...>
Cc: Eduard - Gabriel Munteanu <eduard.munteanu@...>, Mathieu Desnoyers <compudj@...>, Tom Zanussi <tzanussi@...>, <akpm@...>, <linux-kernel@...>, <righi.andrea@...>
Date: Monday, June 16, 2008 - 2:28 pm

On Mon, Jun 16 2008, Pekka Enberg wrote:

Hmm dunno, that is what blktrace also did but primarily for performance
reasons. It's tricky - Tom stated that he is working on a lib to
abstract this from applications. While that is handy for telling you
what to do, it also an annoyance that you HAVE to do it that way (it's
supposed to just be a "normal" fs, not with funky restrictions).

So perhaps provide both versions in-kernel and let the kernel user
device. For blktrace, we have one app and we know we can use the faster
variant since readers are affine. For more debug style exports or where
you don't know your consumer, use the safer variant (which should be the
default action).

-- 
Jens Axboe

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

Messages in current thread:
[PATCH 2/3] relay: Fix race condition which occurs when read..., Eduard - Gabriel Munteanu..., (Thu Jun 12, 9:09 pm)
Re: [PATCH 2/3] relay: Fix race condition which occurs when ..., Eduard - Gabriel Munteanu..., (Sat Jun 14, 11:11 am)
Re: [PATCH 2/3] relay: Fix race condition which occurs when ..., Mathieu Desnoyers, (Mon Jun 16, 8:22 am)
Re: [PATCH 2/3] relay: Fix race condition which occurs when ..., Eduard - Gabriel Munteanu..., (Mon Jun 16, 9:22 am)
Re: [PATCH 2/3] relay: Fix race condition which occurs when ..., Jens Axboe, (Mon Jun 16, 2:28 pm)
Re: [PATCH 2/3] relay: Fix race condition which occurs when ..., Eduard - Gabriel Munteanu..., (Tue Jun 17, 8:39 am)
Re: [PATCH 2/3] relay: Fix race condition which occurs when ..., Mathieu Desnoyers, (Tue Jun 17, 8:55 am)
Re: [PATCH 2/3] relay: Fix race condition which occurs when ..., Eduard - Gabriel Munteanu..., (Tue Jun 17, 9:21 am)
Re: [PATCH 2/3] relay: Fix race condition which occurs when ..., Eduard - Gabriel Munteanu..., (Tue Jun 17, 8:49 am)
Re: [PATCH 2/3] relay: Fix race condition which occurs when ..., Mathieu Desnoyers, (Tue Jun 17, 9:10 am)
Re: [PATCH 2/3] relay: Fix race condition which occurs when ..., Eduard - Gabriel Munteanu..., (Tue Jun 17, 9:35 am)
Re: [PATCH 2/3] relay: Fix race condition which occurs when ..., Mathieu Desnoyers, (Tue Jun 17, 9:50 am)
Re: [PATCH 2/3] relay: Fix race condition which occurs when ..., Eduard - Gabriel Munteanu..., (Tue Jun 17, 10:55 am)
Re: [PATCH 2/3] relay: Fix race condition which occurs when ..., Mathieu Desnoyers, (Mon Jun 16, 2:23 pm)