FS-Cache: wake write waiter after invalidating writes
authorYan, Zheng <zyan@redhat.com>
Tue, 17 May 2016 03:52:48 +0000 (11:52 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Wed, 1 Jun 2016 08:29:09 +0000 (10:29 +0200)
Signed-off-by: Yan, Zheng <zyan@redhat.com>
Acked-by: David Howells <dhowells@redhat.com>
fs/fscache/page.c

index 3078b67..c8c4f79 100644 (file)
@@ -887,6 +887,8 @@ void fscache_invalidate_writes(struct fscache_cookie *cookie)
                        put_page(results[i]);
        }
 
+       wake_up_bit(&cookie->flags, 0);
+
        _leave("");
 }