From: Benny Halevy <bhalevy@panasas.com>
To: Fred Isaman <iisaman@netapp.com>
Cc: linux-nfs@vger.kernel.org
Subject: Re: [PATCH 1/1] Don't check exchange flags unless using v4.1 try 2
Date: Wed, 06 Oct 2010 14:53:41 -0400 [thread overview]
Message-ID: <4CACC5B5.30708@panasas.com> (raw)
In-Reply-To: <1286381362-5639-1-git-send-email-iisaman@netapp.com>
On 2010-10-06 12:09, Fred Isaman wrote:
> Signed-off-by: Fred Isaman <iisaman@netapp.com>
Merged into the bakeathon temporary tree (for now). Thanks!
Benny
> ---
> fs/nfs/pnfs.c | 3 +++
> 1 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/fs/nfs/pnfs.c b/fs/nfs/pnfs.c
> index 7013916..4b33cde 100644
> --- a/fs/nfs/pnfs.c
> +++ b/fs/nfs/pnfs.c
> @@ -141,6 +141,9 @@ set_pnfs_layoutdriver(struct nfs_server *server, u32 id)
>
> if (id == 0)
> goto out_no_driver;
> + if ((server->nfs_client->rpc_ops->version != 4) ||
> + (server->nfs_client->cl_minorversion != 1))
> + goto out_no_driver;
> if (!(server->nfs_client->cl_exchange_flags &
> (EXCHGID4_FLAG_USE_NON_PNFS | EXCHGID4_FLAG_USE_PNFS_MDS))) {
> printk(KERN_ERR "%s: id %u cl_exchange_flags 0x%x\n", __func__,
prev parent reply other threads:[~2010-10-06 18:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-06 16:09 [PATCH 1/1] Don't check exchange flags unless using v4.1 try 2 Fred Isaman
2010-10-06 18:53 ` Benny Halevy [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=4CACC5B5.30708@panasas.com \
--to=bhalevy@panasas.com \
--cc=iisaman@netapp.com \
--cc=linux-nfs@vger.kernel.org \
/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.