summaryrefslogtreecommitdiffstats
path: root/fs/fscache/netfs.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2017-02-01 10:30:56 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2017-02-01 10:30:56 -0800
commit2883aaea363f7a897ff06d2e6c73ae7aae285bcb (patch)
treec4b53cd7231612df4a3b1ac190d205f6618bdbcd /fs/fscache/netfs.c
parente387dc122fc7c70c2a5df2567f4e2d1114f5a5da (diff)
parente26bfebdfc0d212d366de9990a096665d5c0209a (diff)
downloadlinux-stable-2883aaea363f7a897ff06d2e6c73ae7aae285bcb.tar.gz
linux-stable-2883aaea363f7a897ff06d2e6c73ae7aae285bcb.tar.bz2
linux-stable-2883aaea363f7a897ff06d2e6c73ae7aae285bcb.zip
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull fscache fixes from Al Viro. * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: fscache: Fix dead object requeue fscache: Clear outstanding writes when disabling a cookie FS-Cache: Initialise stores_lock in netfs cookie
Diffstat (limited to 'fs/fscache/netfs.c')
-rw-r--r--fs/fscache/netfs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/fscache/netfs.c b/fs/fscache/netfs.c
index 9b28649df3a1..a8aa00be4444 100644
--- a/fs/fscache/netfs.c
+++ b/fs/fscache/netfs.c
@@ -48,6 +48,7 @@ int __fscache_register_netfs(struct fscache_netfs *netfs)
cookie->flags = 1 << FSCACHE_COOKIE_ENABLED;
spin_lock_init(&cookie->lock);
+ spin_lock_init(&cookie->stores_lock);
INIT_HLIST_HEAD(&cookie->backing_objects);
/* check the netfs type is not already present */