Re: [PATCH 1/3] relay: Fix 4 off-by-one errors occuring when writing to a CPU buffer.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Tom Zanussi
Date: Sunday, June 15, 2008 - 10:22 pm

On Sat, 2008-06-14 at 17:52 +0300, Eduard - Gabriel Munteanu wrote:

Yes, I understand that - what I meant was that the subbuf_size + 1
condition happens only in the buffer-full case (i.e. no reader or
lagging reader), but not during the normal filling of a subbuffer, which
you describe correctly.

So apparently what you're seeing is zeroes being read when there's a
buffer-full condition?  If so, we need to figure out exactly why that's
happening to see whether your fix is really what's needed; I haven't
seen problems in the buffer-full case before and I think your fix would
break it even if it fixed your read problem.  So it would be good to be
able to reproduce it first.

Tom  



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

Messages in current thread:
[PATCH 1/3] relay: Fix 4 off-by-one errors occuring when w ..., Eduard - Gabriel Mun ..., (Thu Jun 12, 6:09 pm)
Re: [PATCH 1/3] relay: Fix 4 off-by-one errors occuring wh ..., Eduard - Gabriel Mun ..., (Sat Jun 14, 7:52 am)
Re: [PATCH 1/3] relay: Fix 4 off-by-one errors occuring wh ..., Tom Zanussi, (Sun Jun 15, 10:22 pm)
Re: [PATCH 1/3] relay: Fix 4 off-by-one errors occuring wh ..., Eduard - Gabriel Mun ..., (Fri Jun 20, 7:06 pm)
Re: [PATCH 1/3] relay: Fix 4 off-by-one errors occuring wh ..., Eduard - Gabriel Mun ..., (Wed Jul 30, 10:48 am)
Re: [PATCH 1/3] relay: Fix 4 off-by-one errors occuring wh ..., Eduard - Gabriel Mun ..., (Thu Aug 14, 9:35 am)