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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux