]> Git Repo - linux.git/commitdiff
FS-Cache: Initialise stores_lock in netfs cookie
authorDavid Howells <[email protected]>
Wed, 18 Jan 2017 14:29:17 +0000 (14:29 +0000)
committerAl Viro <[email protected]>
Tue, 31 Jan 2017 18:23:09 +0000 (13:23 -0500)
Initialise the stores_lock in fscache netfs cookies.  Technically, it
shouldn't be necessary, since the netfs cookie is an index and stores no
data, but initialising it anyway adds insignificant overhead.

Signed-off-by: David Howells <[email protected]>
Reviewed-by: Jeff Layton <[email protected]>
Acked-by: Steve Dickson <[email protected]>
Signed-off-by: Al Viro <[email protected]>
fs/fscache/netfs.c

index 9b28649df3a1fdc6f0f0c23b58b03db94dd69eb2..a8aa00be44442f59d6cf08516ab7403d0c02ab9e 100644 (file)
@@ -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 */
This page took 0.055466 seconds and 4 git commands to generate.