mdcache_readdir() checks !mdc_dircache_trusted(), and calls mdcache_dirent_populate(), which calls mdcache_dirent_invalidate_all().
Daniel On 02/16/2017 11:23 AM, Frank Filz wrote: > Where does that happen? It wasn't clear to me. > > Frank > > Sent from my iPhone > >> On Feb 16, 2017, at 6:31 AM, Daniel Gryniewicz <d...@redhat.com> wrote: >> >> The dirents will get cleared out the next time a readdir happens. >> >> Daniel >> >> On 02/16/2017 12:20 AM, Frank Filz wrote: >>>> er, oh noes... >>> >>> The problem I think I see is that the directory never gets cleaned out in >>> this case... >>> >>> I get that we may not want to dispose of the dirents on the upcall thread, >>> but we should dispose of them the next time we do a lookup or readdir... >>> >>> Everything else that invalidates a directory cleans out the dirents inline. >>> >>> Frank >>> >>>>> I'm looking at when dirents are invalidated, and it looks like >>>>> MDCACHE_DIR_POPULATED is cleared on up call, but nothing actually >>>>> cleans out the dirents... >>>>> >>>>> Is this an omission? >>>>> >>>>> Frank >>>>> >>>>> >>>>> --- >>>>> This email has been checked for viruses by Avast antivirus software. >>>>> https://www.avast.com/antivirus >>>>> >>>>> >>>>> ---------------------------------------------------------------------- >>>>> -------- Check out the vibrant tech community on one of the world's >>>>> most engaging tech sites, SlashDot.org! http://sdm.link/slashdot >>>>> _______________________________________________ >>>>> Nfs-ganesha-devel mailing list >>>>> Nfs-ganesha-devel@lists.sourceforge.net >>>>> https://lists.sourceforge.net/lists/listinfo/nfs-ganesha-devel >>>>> >>>> >>>> -- >>>> Matt Benjamin >>>> Red Hat, Inc. >>>> 315 West Huron Street, Suite 140A >>>> Ann Arbor, Michigan 48103 >>>> >>>> http://www.redhat.com/en/technologies/storage >>>> >>>> tel. 734-821-5101 >>>> fax. 734-769-8938 >>>> cel. 734-216-5309 >>> >>> >>> --- >>> This email has been checked for viruses by Avast antivirus software. >>> https://www.avast.com/antivirus >>> >>> >>> ------------------------------------------------------------------------------ >>> Check out the vibrant tech community on one of the world's most >>> engaging tech sites, SlashDot.org! http://sdm.link/slashdot >>> _______________________________________________ >>> Nfs-ganesha-devel mailing list >>> Nfs-ganesha-devel@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/nfs-ganesha-devel >>> >> >> >> ------------------------------------------------------------------------------ >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, SlashDot.org! http://sdm.link/slashdot >> _______________________________________________ >> Nfs-ganesha-devel mailing list >> Nfs-ganesha-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/nfs-ganesha-devel > ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ Nfs-ganesha-devel mailing list Nfs-ganesha-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nfs-ganesha-devel