From: Anna Schumaker <Anna.Schumaker@netapp.com>
To: Trond Myklebust <trond.myklebust@primarydata.com>,
<linux-nfs@vger.kernel.org>
Subject: Re: [PATCH 2/2] pNFS/flexfiles: Fix an XDR encoding bug in layoutreturn
Date: Fri, 22 Jan 2016 09:38:47 -0500 [thread overview]
Message-ID: <56A23EF7.6000107@Netapp.com> (raw)
In-Reply-To: <1453409713-15878-2-git-send-email-trond.myklebust@primarydata.com>
Hi Trond,
On 01/21/2016 03:55 PM, Trond Myklebust wrote:
> We must not skip encoding the statistics, or the server will see an
> XDR encoding error.
>
> Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
> Cc: stable@vger.kernel.org # 4.0+
> ---
> fs/nfs/flexfilelayout/flexfilelayout.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/fs/nfs/flexfilelayout/flexfilelayout.c b/fs/nfs/flexfilelayout/flexfilelayout.c
> index 405f46ba490e..82959409b9a6 100644
> --- a/fs/nfs/flexfilelayout/flexfilelayout.c
> +++ b/fs/nfs/flexfilelayout/flexfilelayout.c
> @@ -1859,9 +1859,7 @@ ff_layout_encode_layoutreturn(struct pnfs_layout_hdr *lo,
> start = xdr_reserve_space(xdr, 4);
> BUG_ON(!start);
>
> - if (ff_layout_encode_ioerr(flo, xdr, args))
> - goto out;
Can you remove the label "out", too? GCC tells me:
fs/nfs/flexfilelayout/flexfilelayout.c:1953:1: error: label 'out' defined but not used [-Werror=unused-label]
Thanks,
Anna
> -
> + ff_layout_encode_ioerr(flo, xdr, args);
> ff_layout_encode_iostats(flo, xdr, args);
> out:
> *start = cpu_to_be32((xdr->p - start - 1) * 4);
>
next prev parent reply other threads:[~2016-01-22 14:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-21 20:55 [PATCH 1/2] pNFS/flexfiles: Improve merging of errors in LAYOUTRETURN Trond Myklebust
2016-01-21 20:55 ` [PATCH 2/2] pNFS/flexfiles: Fix an XDR encoding bug in layoutreturn Trond Myklebust
2016-01-22 14:38 ` Anna Schumaker [this message]
2016-01-22 16:05 ` Trond Myklebust
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=56A23EF7.6000107@Netapp.com \
--to=anna.schumaker@netapp.com \
--cc=linux-nfs@vger.kernel.org \
--cc=trond.myklebust@primarydata.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.