* [PATCH] mm: Get rid of lockdep whinge on sys_swapon
@ 2013-02-05 23:17 Minchan Kim
0 siblings, 0 replies; only message in thread
From: Minchan Kim @ 2013-02-05 23:17 UTC (permalink / raw)
To: Andrew Morton
Cc: linux-mm, linux-kernel, Valdis Kletnieks, Minchan Kim, Shaohua Li
[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/Tested-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
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2013-02-05 23:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-05 23:17 [PATCH] mm: Get rid of lockdep whinge on sys_swapon Minchan Kim
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).