FS-Cache: Fix lock misorder in fscache_write_op()
[linux-2.6.git] / fs / fscache / cookie.c
index e6854f5..f979659 100644 (file)
@@ -36,6 +36,7 @@ void fscache_cookie_init_once(void *_cookie)
 
        memset(cookie, 0, sizeof(*cookie));
        spin_lock_init(&cookie->lock);
+       spin_lock_init(&cookie->stores_lock);
        INIT_HLIST_HEAD(&cookie->backing_objects);
 }