[pnfs] Server Sessions

William A. (Andy) Adamson andros at citi.umich.edu
Mon Jan 29 17:20:49 EST 2007


On 1/29/07, Iyer, Rahul <Rahul.Iyer at netapp.com> wrote:
>
>
>
> > -----Original Message-----
> > From: William A. (Andy) Adamson [mailto:andros at citi.umich.edu]
> > Sent: Monday, January 29, 2007 2:08 PM
> > To: Iyer, Rahul
> > Cc: pnfs at linux-nfs.org
> > Subject: Server Sessions
> >
> > hi rahul
> >
> > i'm looking at the data servers use of sessions.
> >
> > do you have any code to create a 'current_session' in
> > fs/nfsd/nfs4proc.c?
>
> No, I have not. But it should be fairly simple... Much like the putfh
> code. nfsd4_sequence() will give you an idea of how to get a nfs4_client
> struct given a sessionid.


yep.

> have you written the clean-up code for __nfs4_state_shutdown?
> Nothing explicit. Because exchange_id and create_session are similar in
> state processing to setclientid and setclientid_confirm. The additional
> part for sessions is that there is an extra hash table. I do not do any
> other "state allocation" as there isn't any seqid checking. The cleanup
> for the hashtable stuff is in expire_client. So, I do not believe
> anything extra is required in __nfs4_state_shutdown() as it calls
> expire_client().



ah - ha.  ok!

-->Andy

Regards
> Rahul
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://linux-nfs.org/pipermail/pnfs/attachments/20070129/a45669b3/attachment.htm 


More information about the pNFS mailing list