]> git.karo-electronics.de Git - karo-tx-linux.git/commit
swap: add per-partition lock for swapfile fix
authorHugh Dickins <hughd@google.com>
Wed, 20 Feb 2013 02:14:40 +0000 (13:14 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Feb 2013 05:52:47 +0000 (16:52 +1100)
commit728cff79227f1315a9e224230d4b7c53fafa0162
treebdf949db91244261373398e1230b1634436a5cd4
parenta13c7508353e47d494b0a6e3737be9c303269b6a
swap: add per-partition lock for swapfile fix

I had all cpus spinning in swap_info_get(), for the lock on an area
being swapped off: probably because get_swap_page() forgot to unlock.

Signed-off-by: Hugh Dickins <hughd@google.com>
Cc: Shaohua Li <shli@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/swapfile.c