Re: next-20130128 lockdep whinge in sys_swapon()

From: Valdis . Kletnieks
Date: Tue Feb 05 2013 - 10:50:19 EST


On Mon, 04 Feb 2013 10:46:38 +0900, Minchan Kim said:

> Could you test this patch?
>
> From 81cae17c55ade897a7e06b01c864f1c250b40f8b Mon Sep 17 00:00:00 2001
> From: Minchan Kim <minchan@xxxxxxxxxx>
> 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@xxxxxxxxxx>
> Reported-by: Valdis Kletnieks <Valdis.Kletnieks@xxxxxx>
> Signed-off-by: Minchan Kim <minchan@xxxxxxxxxx>

I applied this to a next-20130128, and lockdep doesn't complain about
swapon(). Feel free to add a 'Tested-By:' to the patch and push it
upstream...

Attachment: pgp00000.pgp
Description: PGP signature