All of lore.kernel.org
 help / color / mirror / Atom feed
From: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
To: Tom Zanussi <zanussi@us.ibm.com>
Cc: David Wilder <dwilder@us.ibm.com>,
	linux-kernel@vger.kernel.org, systemtap@sources.redhat.com,
	Yumiko Sugita <yumiko.sugita.yf@hitachi.com>,
	Satoshi Oshima <soshima@redhat.com>,
	Hideo Aoki <haoki@redhat.com>
Subject: Re: [PATCH] relay-file-read-start-pos-fix.patch
Date: Wed, 20 Jun 2007 10:22:31 +0900	[thread overview]
Message-ID: <46788157.9030200@hitachi.com> (raw)
In-Reply-To: <1182270325.30702.87.camel@ubuntu>

Tom Zanussi wrote:
> Hi,
> 
> I haven't had a chance to test it myself yet, but it looks ok to me,
> except for one problem noted below...

Hi,

Thank you so much!
I'm preparing how it can reproduce. I'll send it as soon as possible.

> Thanks for fixing it.
> 
>> Signed-off-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
>>
>> ---
>>  kernel/relay.c |    8 ++++++--
>>  1 file changed, 6 insertions(+), 2 deletions(-)
>>
>> Index: linux-2.6.22-rc4-mm2/kernel/relay.c
>> ===================================================================
>> --- linux-2.6.22-rc4-mm2.orig/kernel/relay.c	2007-06-13 20:22:02.000000000 +0900
>> +++ linux-2.6.22-rc4-mm2/kernel/relay.c	2007-06-18 23:00:54.000000000 +0900
>> @@ -812,7 +812,10 @@
>>  	}
>>
>>  	buf->bytes_consumed += bytes_consumed;
>> -	read_subbuf = read_pos / buf->chan->subbuf_size;
>> +	if (!read_pos)
>> +		read_subbuf = buf->subbufs_consumed;
> 
> I think this should be instead:
> 
> +		read_subbuf = buf->subbufs_consumed % n_subbufs;

Yes, you are right.
Thank you again.

-- 
Masami HIRAMATSU
Linux Technology Center
Hitachi, Ltd., Systems Development Laboratory
E-mail: masami.hiramatsu.pt@hitachi.com

      reply	other threads:[~2007-06-20  1:22 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-18  4:57 [PATCH] relay-file-read-start-pos-fix.patch David Wilder
2007-06-19  3:43 ` Masami Hiramatsu
2007-06-19  5:35   ` Tom Zanussi
2007-06-20  8:31     ` Masami Hiramatsu
2007-06-20 14:46       ` Tom Zanussi
2007-06-21 18:05       ` David Wilder
2007-06-19 16:25   ` Tom Zanussi
2007-06-20  1:22     ` Masami Hiramatsu [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=46788157.9030200@hitachi.com \
    --to=masami.hiramatsu.pt@hitachi.com \
    --cc=dwilder@us.ibm.com \
    --cc=haoki@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=soshima@redhat.com \
    --cc=systemtap@sources.redhat.com \
    --cc=yumiko.sugita.yf@hitachi.com \
    --cc=zanussi@us.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.