From mboxrd@z Thu Jan 1 00:00:00 1970 From: Benny Halevy Subject: Re: [pnfs] [PATCH 9/9] SQUASHME: pnfs: filelayout: mask out server's MDS capability flag for DSs Date: Thu, 10 Dec 2009 00:21:41 +0200 Message-ID: <4B2022F5.9060002@panasas.com> References: <4B1F7AF6.2080305@panasas.com> <1260354530-12578-1-git-send-email-bhalevy@panasas.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: "J. Bruce Fields" , linux-fsdevel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-nfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: pnfs-6DNke4IJHB0gsBAKwltoeQ@public.gmane.org Return-path: In-Reply-To: <1260354530-12578-1-git-send-email-bhalevy-C4P08NqkoRlBDgjK7y7TUQ@public.gmane.org> Sender: linux-nfs-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-fsdevel.vger.kernel.org On Dec. 09, 2009, 12:28 +0200, Benny Halevy wrote: > When establishing a session with a DS mask out its MDS > exchange_id flag so we know we use it as DS-only. > > Signed-off-by: Benny Halevy > --- > fs/nfs/nfs4filelayoutdev.c | 3 +++ > 1 files changed, 3 insertions(+), 0 deletions(-) > > diff --git a/fs/nfs/nfs4filelayoutdev.c b/fs/nfs/nfs4filelayoutdev.c > index 128715a..cb8ae88 100644 > --- a/fs/nfs/nfs4filelayoutdev.c > +++ b/fs/nfs/nfs4filelayoutdev.c > @@ -272,6 +272,9 @@ nfs4_pnfs_ds_create(struct nfs_server *mds_srv, struct nfs4_pnfs_ds *ds) > if (err) > goto out_put; > > + /* mask out the server's MDS capability flag */ > + clp->cl_exchange_flags |= EXCHGID4_FLAG_USE_PNFS_DS; > + Duh, that should be clp->cl_exchange_flags &= ~EXCHGID4_FLAG_USE_PNFS_MDS; Or I'm just utterly tired ;-) Benny > if (!(clp->cl_exchange_flags & EXCHGID4_FLAG_USE_PNFS_DS)) { > printk(KERN_INFO "ip:port %s is not a pNFS Data Server\n", > ds->r_addr); -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html