mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-21 06:01:23 +00:00
[PATCH] mutex subsystem, more debugging code
more mutex debugging: check for held locks during memory freeing, task exit, enable sysrq printouts, etc. Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Arjan van de Ven <arjan@infradead.org>
This commit is contained in:
parent
408894ee4d
commit
de5097c2e7
7 changed files with 37 additions and 0 deletions
|
@ -29,6 +29,7 @@
|
|||
#include <linux/syscalls.h>
|
||||
#include <linux/signal.h>
|
||||
#include <linux/cn_proc.h>
|
||||
#include <linux/mutex.h>
|
||||
|
||||
#include <asm/uaccess.h>
|
||||
#include <asm/unistd.h>
|
||||
|
@ -869,6 +870,10 @@ fastcall NORET_TYPE void do_exit(long code)
|
|||
mpol_free(tsk->mempolicy);
|
||||
tsk->mempolicy = NULL;
|
||||
#endif
|
||||
/*
|
||||
* If DEBUG_MUTEXES is on, make sure we are holding no locks:
|
||||
*/
|
||||
mutex_debug_check_no_locks_held(tsk);
|
||||
|
||||
/* PF_DEAD causes final put_task_struct after we schedule. */
|
||||
preempt_disable();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue