diff options
| author | David S. Miller <davem@davemloft.net> | 2010-02-28 22:23:06 -0500 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2010-02-28 22:23:06 -0500 |
| commit | 47871889c601d8199c51a4086f77eebd77c29b0b (patch) | |
| tree | 40cdcac3bff0ee40cc33dcca61d0577cdf965f77 /kernel/lockdep.c | |
| parent | c16cc0b464b8876cfd57ce1c1dbcb6f9a6a0bce3 (diff) | |
| parent | 30ff056c42c665b9ea535d8515890857ae382540 (diff) | |
Merge branch 'master' of /home/davem/src/GIT/linux-2.6/
Conflicts:
drivers/firmware/iscsi_ibft.c
Diffstat (limited to 'kernel/lockdep.c')
| -rw-r--r-- | kernel/lockdep.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/kernel/lockdep.c b/kernel/lockdep.c index c62ec14609b9..0c30d0455de1 100644 --- a/kernel/lockdep.c +++ b/kernel/lockdep.c | |||
| @@ -3809,3 +3809,21 @@ void lockdep_sys_exit(void) | |||
| 3809 | lockdep_print_held_locks(curr); | 3809 | lockdep_print_held_locks(curr); |
| 3810 | } | 3810 | } |
| 3811 | } | 3811 | } |
| 3812 | |||
| 3813 | void lockdep_rcu_dereference(const char *file, const int line) | ||
| 3814 | { | ||
| 3815 | struct task_struct *curr = current; | ||
| 3816 | |||
| 3817 | if (!debug_locks_off()) | ||
| 3818 | return; | ||
| 3819 | printk("\n===================================================\n"); | ||
| 3820 | printk( "[ INFO: suspicious rcu_dereference_check() usage. ]\n"); | ||
| 3821 | printk( "---------------------------------------------------\n"); | ||
| 3822 | printk("%s:%d invoked rcu_dereference_check() without protection!\n", | ||
| 3823 | file, line); | ||
| 3824 | printk("\nother info that might help us debug this:\n\n"); | ||
| 3825 | lockdep_print_held_locks(curr); | ||
| 3826 | printk("\nstack backtrace:\n"); | ||
| 3827 | dump_stack(); | ||
| 3828 | } | ||
| 3829 | EXPORT_SYMBOL_GPL(lockdep_rcu_dereference); | ||
