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 Howells <dhowells@redhat.com>
Date: 2022-11-17 13:37:34

You can probably make this easier to trigger by putting a delay in the state
machine if the flag is set:

[fs/fscache/cookie.c]
+#include <linux/delay.h>
...
 static void fscache_cookie_state_machine(struct fscache_cookie *cookie)
 {
 	enum fscache_cookie_state state;
 	bool wake = false;

 	_enter("c=%x", cookie->debug_id);

 again:
+	if (test_bit(FSCACHE_COOKIE_DO_LRU_DISCARD, &cookie->flags))
+		msleep(100);
 again_locked:
 	state = cookie->state;
 	switch (state) {

David
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help