* Re: [pnfs] [PATCH] Fix session initialization when following referrals
[not found] ` <alpine.OSX.2.00.0909291327360.21014-uDfGT2BMUji44ywRPIzf9A@public.gmane.org>
@ 2009-09-29 7:43 ` Benny Halevy
0 siblings, 0 replies; only message in thread
From: Benny Halevy @ 2009-09-29 7:43 UTC (permalink / raw)
To: Jjgod Jiang; +Cc: nfsv4, pnfs, NFS list
On Sep. 29, 2009, 7:35 +0200, Jjgod Jiang <jiangjiang-U4AKAne5IzAR5TUyvShJeg@public.gmane.org> wrote:
> Hi,
>
> When following NFSv4 referrals, nfs will initialize the session of the
> client with nfs4_alloc_session() and expecting to recover the session
> on SEQUENCE operation. However, nfs41_setup_sequence() expects the
> fc_slot_table->highest_used_slotid of this session to be -1, otherwise
> it will simply return -EAGAIN without recovering the session. This
> patch complete nfs4_alloc_session() so that nfs41_setup_sequence() can
> successfully return when following referrals.
Ack.
I'll merge this patch also in my tree for the upcoming Bakeathon.
Benny
P.S. please use linux-nfs@vger.kernel.org rather than nfsv4@linux-nfs.org
>
> --- nfs/nfs4proc.c 2009-09-17 09:20:59.000000000 +0800
> +++ nfs4proc.c 2009-09-29 13:18:08.000000000 +0800
> @@ -4789,6 +4789,7 @@ struct nfs4_session *nfs4_alloc_session(
> clp->cl_cons_state = NFS_CS_SESSION_INITING;
>
> tbl = &session->fc_slot_table;
> + tbl->highest_used_slotid = -1;
> spin_lock_init(&tbl->slot_tbl_lock);
> rpc_init_wait_queue(&tbl->slot_tbl_waitq, "ForeChannel Slot table");
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> pNFS mailing list
> pNFS@linux-nfs.org
> http://linux-nfs.org/cgi-bin/mailman/listinfo/pnfs
^ permalink raw reply [flat|nested] only message in thread