All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alex Elder <elder@ieee.org>
To: Shraddha Barke <shraddha.6596@gmail.com>, ceph-devel@vger.kernel.org
Subject: Re: [PATCH v2] Net: ceph: messenger: Use local variable cursor in read_partial_msg_data()
Date: Mon, 19 Oct 2015 07:22:08 -0500	[thread overview]
Message-ID: <5624E070.5050109@ieee.org> (raw)
In-Reply-To: <1445222975-16086-1-git-send-email-shraddha.6596@gmail.com>

On 10/18/2015 09:49 PM, Shraddha Barke wrote:
> Use local variable cursor in place of &msg->cursor in
>  read_partial_msg_data()
> 
> Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>

This is a pretty minor comment, but the "Net" in your
subject line is probably better *not* capitalized.

					-Alex

> ---
> Changes in v2-
>  Drop incorrect use of cursor
> 
>  net/ceph/messenger.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/net/ceph/messenger.c b/net/ceph/messenger.c
> index b9b0e3b..b087edd 100644
> --- a/net/ceph/messenger.c
> +++ b/net/ceph/messenger.c
> @@ -2246,7 +2246,7 @@ static int read_partial_msg_data(struct ceph_connection *con)
>  	if (do_datacrc)
>  		crc = con->in_data_crc;
>  	while (cursor->resid) {
> -		page = ceph_msg_data_next(&msg->cursor, &page_offset, &length,
> +		page = ceph_msg_data_next(cursor, &page_offset, &length,
>  							NULL);
>  		ret = ceph_tcp_recvpage(con->sock, page, page_offset, length);
>  		if (ret <= 0) {
> @@ -2258,7 +2258,7 @@ static int read_partial_msg_data(struct ceph_connection *con)
>  
>  		if (do_datacrc)
>  			crc = ceph_crc32c_page(crc, page, page_offset, ret);
> -		(void) ceph_msg_data_advance(&msg->cursor, (size_t)ret);
> +		(void) ceph_msg_data_advance(cursor, (size_t)ret);
>  	}
>  	if (do_datacrc)
>  		con->in_data_crc = crc;
> 


      parent reply	other threads:[~2015-10-19 12:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-19  2:49 [PATCH v2] Net: ceph: messenger: Use local variable cursor in read_partial_msg_data() Shraddha Barke
2015-10-19  9:43 ` Ilya Dryomov
2015-10-19 12:22 ` Alex Elder [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=5624E070.5050109@ieee.org \
    --to=elder@ieee.org \
    --cc=ceph-devel@vger.kernel.org \
    --cc=shraddha.6596@gmail.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.