Re: [PATCH 1/1] fscache: Fix oops due to race with cookie_lru and use_cookie
From: David Howells <dhowells@redhat.com>
Date: 2022-11-17 13:54:02
From: David Howells <dhowells@redhat.com>
Date: 2022-11-17 13:54:02
Dave Wysochanski [off-list ref] wrote:
+ 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