assise icon indicating copy to clipboard operation
assise copied to clipboard

I see that the global lru list "g_fcache_head" is not protected by locks, which may cause something wrong?

Open melody97 opened this issue 4 years ago • 1 comments

Do I ignore something?

melody97 avatar Aug 30 '21 04:08 melody97

You're correct. The LibFS LRU list should be protected by a lock since the linked list methods are not thread-safe. We didn't get around to adding this since the fcache is only used when reading from SSDs. A pull request would be welcome here!

wreda avatar Sep 02 '21 21:09 wreda