Ok, I'm not sure how this didn't go upstream, but here's an upstream patch: https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/490335 Frank
-----Original Message----- From: Pradeep Thomas [mailto:pradeepthomas@gmail.com] Sent: Friday, April 17, 2020 7:06 AM To: devel@lists.nfs-ganesha.org Subject: [NFS-Ganesha-Devel] Re: Hitting a crash in mdcache_lru_cleanup_push.
Thanks Daniel, Malahal.
Looking at latest code base, looks like we can still hit this race. In mdcache_new_entry(), latch is released before mdcache_lru_insert(). So, it is likely that another thread could get the new entry and try removing it and end up crashing mdcache_lru_cleanup_push.
Looks like we need something like what Malahal posted above.
Thanks, Pradeep
2.7.6 is now almost a year old, and includes lot of MDCACHE fixes, including LRU related fixes, since 2.7.1. In addition, 2.8 and 3.x both have additional fixes. I'd estimate at least a dozen total.
Daniel
On 4/16/20 8:59 PM, Pradeep Thomas wrote:
Devel mailing list -- devel@lists.nfs-ganesha.org To unsubscribe send an email to devel-leave@lists.nfs-ganesha.org