git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
FS-Cache: Fix lock misorder in fscache_write_op()
[safe/jmp/linux-2.6]
/
fs
/
fscache
/
cookie.c
diff --git
a/fs/fscache/cookie.c
b/fs/fscache/cookie.c
index
e6854f5
..
f979659
100644
(file)
--- a/
fs/fscache/cookie.c
+++ b/
fs/fscache/cookie.c
@@
-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);
}