On Wed, 2009-09-02 at 10:48 +0300, Benny Halevy wrote: > Currently the error returned from create_session > is ignored by nfs4_check_client_ready and mis-translated to > -EPROTONOSUPPORT if the client has a session. > Record the error returned from create_session to the state manager > in cl_cons_state via nfs_mark_client_ready and pass it upstream > in nfs4_recover_expired_lease. > > Signed-off-by: Benny Halevy <bhalevy@xxxxxxxxxxx> > --- Firstly, if you're out to save 4 bytes by sharing storage with an object of an entirely different type, then please use an explicit union. Then use a special state NFS4CLNT_LEASE_RECLAIM_FAILED in order to clearly label what is being stored in that union. Secondly, I'd say that it is more natural to share storage with the client id, cl_ex_clid, rather than using the lease time. The latter is read via an entirely separate RPC call _after_ you are done establishing the lease and the first session. -- Trond Myklebust Linux NFS client maintainer NetApp Trond.Myklebust@xxxxxxxxxx www.netapp.com -- 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