This is done in _mdcache_lru_unref() if we put the last long term
reference. The entry is moved to the MRU of L1.
Daniel
On 5/22/23 01:39, Gaurav Sharma via Devel wrote:
Hi Ganesha Team,
In MDCache we have two arrays named LRU and CHUNK_LRU to store the lru
entry in their respective queues.
For the CHUNK_LRU, the function lru_bump_chunk() will move the entry
to MRU of L1.
For LRU there is a function adjust_lru() which does the similar job.
Question : The function adjust_lru() is only called if the flag
is LRU_REQ_INITIAL and that is happening only during unexport.
1. Can you please suggest how the entries in LRU queue are moving to
MRU of the queue?
2. How LRU entries are moved from L2 to L1 queue? from L1 to L2 is done
by the background thread.
Regards,
Gaurav Sharma
_______________________________________________
Devel mailing list -- devel(a)lists.nfs-ganesha.org
To unsubscribe send an email to devel-leave(a)lists.nfs-ganesha.org