On Sep. 29, 2009, 7:35 +0200, Jjgod Jiang <jiangjiang@xxxxxxxxxxxx> 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@xxxxxxxxxxxxxxx rather than nfsv4@xxxxxxxxxxxxx > > --- 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@xxxxxxxxxxxxx > http://linux-nfs.org/cgi-bin/mailman/listinfo/pnfs -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html