]> git.karo-electronics.de Git - karo-tx-linux.git/commit
lockdep: check that no locks held at freeze time
authorMandeep Singh Baines <msb@chromium.org>
Wed, 20 Feb 2013 02:15:58 +0000 (13:15 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Feb 2013 05:53:35 +0000 (16:53 +1100)
commit9f1291cf1d4247baf20ef5064fa61cfac41001ec
treea204a89e48213c30f6b5c124c5eb971487d8f8af
parenteef6d40c17c64fc71294d85e1b33059d52af9873
lockdep: check that no locks held at freeze time

We shouldn't try_to_freeze if locks are held.  Verified that I get no
lockdep warnings after applying this patch and "vfork: don't
freezer_count() for in-kernel users of CLONE_VFORK".

Signed-off-by: Mandeep Singh Baines <msb@chromium.org>
Cc: Ben Chan <benchan@chromium.org>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Tejun Heo <tj@kernel.org>
Cc: Rafael J. Wysocki <rjw@sisk.pl>
Cc: Ingo Molnar <mingo@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/freezer.h
kernel/lockdep.c