public inbox for stable@vger.kernel.org
 help / color / mirror / Atom feed
* Patch "FS-Cache: Initialise stores_lock in netfs cookie" has been added to the 4.4-stable tree
@ 2017-06-15 10:48 gregkh
  0 siblings, 0 replies; only message in thread
From: gregkh @ 2017-06-15 10:48 UTC (permalink / raw)
  To: dhowells, alexander.levin, gregkh, jlayton, steved, viro
  Cc: stable, stable-commits


This is a note to let you know that I've just added the patch titled

    FS-Cache: Initialise stores_lock in netfs cookie

to the 4.4-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     fs-cache-initialise-stores_lock-in-netfs-cookie.patch
and it can be found in the queue-4.4 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@vger.kernel.org> know about it.


>From foo@baz Thu Jun 15 12:25:54 CEST 2017
From: David Howells <dhowells@redhat.com>
Date: Tue, 23 May 2017 21:54:06 -0400
Subject: FS-Cache: Initialise stores_lock in netfs cookie

From: David Howells <dhowells@redhat.com>


[ Upstream commit 62deb8187d116581c88c69a2dd9b5c16588545d4 ]

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 <dhowells@redhat.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Acked-by: Steve Dickson <steved@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
 fs/fscache/netfs.c |    1 +
 1 file changed, 1 insertion(+)

--- a/fs/fscache/netfs.c
+++ b/fs/fscache/netfs.c
@@ -48,6 +48,7 @@ int __fscache_register_netfs(struct fsca
 	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 */


Patches currently in stable-queue which might be from dhowells@redhat.com are

queue-4.4/fscache-clear-outstanding-writes-when-disabling-a-cookie.patch
queue-4.4/fs-cache-initialise-stores_lock-in-netfs-cookie.patch
queue-4.4/fscache-fix-dead-object-requeue.patch

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-06-15 10:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-15 10:48 Patch "FS-Cache: Initialise stores_lock in netfs cookie" has been added to the 4.4-stable tree gregkh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox