public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] linux-patches r1888 - genpatches-2.6/trunk/2.6.37
@ 2011-03-20 19:02 Mike Pagano (mpagano)
  0 siblings, 0 replies; only message in thread
From: Mike Pagano (mpagano) @ 2011-03-20 19:02 UTC (permalink / raw
  To: gentoo-commits

Author: mpagano
Date: 2011-03-20 19:02:08 +0000 (Sun, 20 Mar 2011)
New Revision: 1888

Added:
   genpatches-2.6/trunk/2.6.37/1900_fs-cache-op-handling-fix.patch
Modified:
   genpatches-2.6/trunk/2.6.37/0000_README
Log:
Fix operation handling in fscache

Modified: genpatches-2.6/trunk/2.6.37/0000_README
===================================================================
--- genpatches-2.6/trunk/2.6.37/0000_README	2011-03-15 13:14:38 UTC (rev 1887)
+++ genpatches-2.6/trunk/2.6.37/0000_README	2011-03-20 19:02:08 UTC (rev 1888)
@@ -55,6 +55,10 @@
 From:   http://www.kernel.org
 Desc:   Linux 2.6.37.4
 
+Patch:  1900_fs-cache-op-handling-fix.patch
+From:   http://bugs.gentoo.org/show_bug.cgi?id=352149
+Desc:   Fix operation handling in fscache
+
 Patch:  2400_iwlwifi-fw-reload-rf-fix.patch
 From:   http://www.spinics.net/lists/linux-wireless/msg61225.html
 Desc:   Do not reload fw if WiMAX own the RF

Added: genpatches-2.6/trunk/2.6.37/1900_fs-cache-op-handling-fix.patch
===================================================================
--- genpatches-2.6/trunk/2.6.37/1900_fs-cache-op-handling-fix.patch	                        (rev 0)
+++ genpatches-2.6/trunk/2.6.37/1900_fs-cache-op-handling-fix.patch	2011-03-20 19:02:08 UTC (rev 1888)
@@ -0,0 +1,29 @@
+From: Akshat Aranya <aranya@nec-labs.com>
+Date: Fri, 14 Jan 2011 16:00:47 +0000 (+0000)
+Subject: FS-Cache: Fix operation handling
+X-Git-Tag: v2.6.38-rc1~59
+X-Git-Url: http://git.kernel.org/?p=linux%2Fkernel%2Fgit%2Ftorvalds%2Flinux-2.6.git;a=commitdiff_plain;h=ba28b93a5227cc69ec811507f7d85ac25fa20fe2
+
+FS-Cache: Fix operation handling
+
+fscache_submit_exclusive_op() adds an operation to the pending list if
+other operations are pending.  Fix the check for pending ops as n_ops
+must be greater than 0 at the point it is checked as it is incremented
+immediately before under lock.
+
+Signed-off-by: Akshat Aranya <aranya@nec-labs.com>
+Signed-off-by: David Howells <dhowells@redhat.com>
+Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
+---
+
+--- a/fs/fscache/operation.c	2011-03-20 14:57:01.000000000 -0400
++++ b/fs/fscache/operation.c	2011-03-20 14:57:28.000000000 -0400
+@@ -101,7 +101,7 @@ int fscache_submit_exclusive_op(struct f
+ 		object->n_ops++;
+ 		object->n_exclusive++;	/* reads and writes must wait */
+ 
+-		if (object->n_ops > 0) {
++		if (object->n_ops > 1) {
+ 			atomic_inc(&op->usage);
+ 			list_add_tail(&op->pend_link, &object->pending_ops);
+ 			fscache_stat(&fscache_n_op_pend);




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

only message in thread, other threads:[~2011-03-20 19:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-20 19:02 [gentoo-commits] linux-patches r1888 - genpatches-2.6/trunk/2.6.37 Mike Pagano (mpagano)

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