All of lore.kernel.org
 help / color / mirror / Atom feed
diff for duplicates of <20130204014638.GC2688@blaptop>

diff --git a/a/1.txt b/N1/1.txt
index 16626ca..bee9297 100644
--- a/a/1.txt
+++ b/N1/1.txt
@@ -36,3 +36,40 @@ On Thu, Jan 31, 2013 at 01:45:14PM -0500, Valdis Kletnieks wrote:
 > Somebody care to sprinkle the appropriate annotations on that code?
 
 Could you test this patch?
+
+>From 81cae17c55ade897a7e06b01c864f1c250b40f8b Mon Sep 17 00:00:00 2001
+From: Minchan Kim <minchan@kernel.org>
+Date: Mon, 4 Feb 2013 10:43:32 +0900
+Subject: [PATCH] mm: Get rid of lockdep whinge on sys_swapon
+
+[1] forgot to initialize spin_lock so lockdep is whingeing
+about it. This patch fixes it.
+
+[1] 0f181e0e4, swap: add per-partition lock for swapfile
+
+Cc: Shaohua Li <shli@kernel.org>
+Reported-by: Valdis Kletnieks <Valdis.Kletnieks@vt.edu>
+Signed-off-by: Minchan Kim <minchan@kernel.org>
+---
+ mm/swapfile.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/mm/swapfile.c b/mm/swapfile.c
+index dfaff5f..ac190d6 100644
+--- a/mm/swapfile.c
++++ b/mm/swapfile.c
+@@ -1857,6 +1857,7 @@ static struct swap_info_struct *alloc_swap_info(void)
+ 	p->flags = SWP_USED;
+ 	p->next = -1;
+ 	spin_unlock(&swap_lock);
++	spin_lock_init(&p->lock);
+ 
+ 	return p;
+ }
+-- 
+1.8.1.1
+
+
+-- 
+Kind regards,
+Minchan Kim
diff --git a/a/content_digest b/N1/content_digest
index 9d68592..fc1428f 100644
--- a/a/content_digest
+++ b/N1/content_digest
@@ -47,6 +47,43 @@
  "> \n"
  "> Somebody care to sprinkle the appropriate annotations on that code?\n"
  "\n"
- Could you test this patch?
+ "Could you test this patch?\n"
+ "\n"
+ ">From 81cae17c55ade897a7e06b01c864f1c250b40f8b Mon Sep 17 00:00:00 2001\n"
+ "From: Minchan Kim <minchan@kernel.org>\n"
+ "Date: Mon, 4 Feb 2013 10:43:32 +0900\n"
+ "Subject: [PATCH] mm: Get rid of lockdep whinge on sys_swapon\n"
+ "\n"
+ "[1] forgot to initialize spin_lock so lockdep is whingeing\n"
+ "about it. This patch fixes it.\n"
+ "\n"
+ "[1] 0f181e0e4, swap: add per-partition lock for swapfile\n"
+ "\n"
+ "Cc: Shaohua Li <shli@kernel.org>\n"
+ "Reported-by: Valdis Kletnieks <Valdis.Kletnieks@vt.edu>\n"
+ "Signed-off-by: Minchan Kim <minchan@kernel.org>\n"
+ "---\n"
+ " mm/swapfile.c | 1 +\n"
+ " 1 file changed, 1 insertion(+)\n"
+ "\n"
+ "diff --git a/mm/swapfile.c b/mm/swapfile.c\n"
+ "index dfaff5f..ac190d6 100644\n"
+ "--- a/mm/swapfile.c\n"
+ "+++ b/mm/swapfile.c\n"
+ "@@ -1857,6 +1857,7 @@ static struct swap_info_struct *alloc_swap_info(void)\n"
+ " \tp->flags = SWP_USED;\n"
+ " \tp->next = -1;\n"
+ " \tspin_unlock(&swap_lock);\n"
+ "+\tspin_lock_init(&p->lock);\n"
+ " \n"
+ " \treturn p;\n"
+ " }\n"
+ "-- \n"
+ "1.8.1.1\n"
+ "\n"
+ "\n"
+ "-- \n"
+ "Kind regards,\n"
+ Minchan Kim
 
-6e9ae753f6e12b1fe63b4dde509dcd0996446f9c2834a285cb11273b38bc7569
+881e302b10477499d3001672aadc2e5ad64f326512cbc408d27abe4011770103

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.