I'm not familiar with this code, so not likely to be much help. Looks mostly written by Matt, but Malahal made the most recent changes in July 2016.
On 3/10/17 9:35 AM, Satya Prakash GS wrote: > Is this a possibility : > > Server first rejects a client op with CREDPROBLEM/REJECTEDCRED, > Client does an upcall and gssd initializes the context with the server. > However the server recycles it immediately before the operation was > retried (looks like there is a bug in the LRU implementation on > Ganesha. To make things worse, I enabled the server debugs and it > slowed down the client operations making the eviction of the entry > easier). This happens thrice failing the client op. > Problem is not obvious. axp->gen is initialized to zero with the rest of *axp -- mem_zalloc(). gd->gen is initialized to zero by alloc_svc_rpc_gss_data(). axp->gen is bumped by one (++) each time it is handled by LRU code in authgss_ctx_hash_get(). atomic_inc_uint32_t(&gd->gen) is immediately after that. You think gd->gen also needs to be set to axp->gen in _set()? I'm not sure they are related. There are many gd per axp, so axp->gen could be much higher than gd->gen. Both _get and _set are only called in svc_auth_gss.c _svcauth_gss(). Admittedly, it is hard to track that there are 2 fields both called gen. > Thanks, > Satya. > > On Thu, Mar 9, 2017 at 8:07 PM, Satya Prakash GS > <g.satyaprak...@gmail.com> wrote: >> Looks like the gen field in svc_rpc_gss_data is used to check the >> freshness of a context. However it is not initialized to axp->gen in >> authgss_ctx_hash_set. >> Will this not result in evicting the entries out early or am I missing >> something ? >> >> Thanks, >> Satya. >> > > ------------------------------------------------------------------------------ > Announcing the Oxford Dictionaries API! The API offers world-renowned > dictionary content that is easy and intuitive to access. Sign up for an > account today to start using our lexical data to power your apps and > projects. Get started today and enter our developer competition. > http://sdm.link/oxford > _______________________________________________ > Nfs-ganesha-devel mailing list > Nfs-ganesha-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nfs-ganesha-devel > ------------------------------------------------------------------------------ Announcing the Oxford Dictionaries API! The API offers world-renowned dictionary content that is easy and intuitive to access. Sign up for an account today to start using our lexical data to power your apps and projects. Get started today and enter our developer competition. http://sdm.link/oxford _______________________________________________ Nfs-ganesha-devel mailing list Nfs-ganesha-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nfs-ganesha-devel