]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: Get rid of lockdep whinge on sys_swapon
authorMinchan Kim <minchan@kernel.org>
Wed, 20 Feb 2013 02:14:41 +0000 (13:14 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Feb 2013 05:52:47 +0000 (16:52 +1100)
commit4eac293654f0edf84f7adbdafff171c5f7985ff2
treebe9488500517be2d98cb425e51d1669445df3ada
parentcf1707e395a6b2671c6eab0cc473b7cfa61c16c1
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

Signed-off-by: Minchan Kim <minchan@kernel.org>
Reported-by: Valdis Kletnieks <Valdis.Kletnieks@vt.edu>
Tested-by: Valdis Kletnieks <Valdis.Kletnieks@vt.edu>
Cc: Shaohua Li <shli@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/swapfile.c