From: Benny Halevy 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 Message-ID: <4CACC5B5.30708@panasas.com> References: <1286381362-5639-1-git-send-email-iisaman@netapp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Cc: linux-nfs@vger.kernel.org To: Fred Isaman Return-path: Received: from daytona.panasas.com ([67.152.220.89]:23030 "EHLO daytona.int.panasas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1758038Ab0JFSxm (ORCPT ); Wed, 6 Oct 2010 14:53:42 -0400 In-Reply-To: <1286381362-5639-1-git-send-email-iisaman@netapp.com> Sender: linux-nfs-owner@vger.kernel.org List-ID: On 2010-10-06 12:09, Fred Isaman wrote: > Signed-off-by: Fred Isaman 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__,