From mboxrd@z Thu Jan 1 00:00:00 1970 From: Benny Halevy Subject: Re: [pnfs] [RFC 08/51] nfsd41: introduce nfs4_client cl_sessions list Date: Mon, 17 Nov 2008 15:58:14 +0200 Message-ID: <49217876.5040903@panasas.com> References: <491895A0.3040809@panasas.com> <1226349800-10393-1-git-send-email-bhalevy@panasas.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Cc: "J. Bruce Fields" , linux-nfs@vger.kernel.org To: pnfs@linux-nfs.org Return-path: Received: from gw-ca.panasas.com ([66.104.249.162]:16054 "EHLO laguna.int.panasas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753085AbYKQN6R (ORCPT ); Mon, 17 Nov 2008 08:58:17 -0500 In-Reply-To: <1226349800-10393-1-git-send-email-bhalevy@panasas.com> Sender: linux-nfs-owner@vger.kernel.org List-ID: On Nov. 10, 2008, 22:43 +0200, Benny Halevy wrote: > From: Marc Eshel > > Signed-off-by: Benny Halevy > --- > fs/nfsd/nfs4state.c | 3 +++ > include/linux/nfsd/state.h | 3 +++ > 2 files changed, 6 insertions(+), 0 deletions(-) > > diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c > index 8c1b5d9..7406826 100644 > --- a/fs/nfsd/nfs4state.c > +++ b/fs/nfsd/nfs4state.c > @@ -457,6 +457,9 @@ static struct nfs4_client *create_client(struct xdr_netobj name, char *recdir) > INIT_LIST_HEAD(&clp->cl_strhash); > INIT_LIST_HEAD(&clp->cl_openowners); > INIT_LIST_HEAD(&clp->cl_delegations); > +#if defined(CONFIG_NFSD_V4_1) > + INIT_LIST_HEAD(&clp->cl_sessions); > +#endif /* CONFIG_NFSD_V4_1 */ > INIT_LIST_HEAD(&clp->cl_lru); > return clp; > } > diff --git a/include/linux/nfsd/state.h b/include/linux/nfsd/state.h > index 2f28ad4..28c42ea 100644 > --- a/include/linux/nfsd/state.h > +++ b/include/linux/nfsd/state.h > @@ -187,6 +187,9 @@ struct nfs4_client { > struct list_head cl_strhash; /* hash by cl_name */ > struct list_head cl_openowners; > struct list_head cl_delegations; > +#if defined(CONFIG_NFSD_V4_1) > + struct list_head cl_sessions; > +#endif /* CONFIG_NFSD_V4_1 */ review 11-12: move this ifdef down and unify with cl_exchange_flags et-al. > struct list_head cl_lru; /* tail queue */ > struct xdr_netobj cl_name; /* id generated by client */ > char cl_recdir[HEXDIR_LEN]; /* recovery dir */