Thread (7 messages) 7 messages, 3 authors, 2022-11-22

Re: [PATCH 1/1] fscache: Fix oops due to race with cookie_lru and use_cookie

From: David Wysochanski <hidden>
Date: 2022-11-17 14:12:39

On Thu, Nov 17, 2022 at 8:52 AM David Howells [off-list ref] wrote:
Dave Wysochanski [off-list ref] wrote:
quoted
+             clear_bit(FSCACHE_COOKIE_DO_LRU_DISCARD, &cookie->flags);
Actually, can you do test_and_clear_bit() and then log a trace point, say:

        fscache_see_cookie(cookie, fscache_cookie_see_lru_discard_cancel);

if the bit was set.

David
Ok sure.  I will post a v2 with the trace point and the test_and_clear_bit.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help