17 Apr
2020
17 Apr
'20
7:05 a.m.
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: