Patchwork 2.6.34-rc5-git7 (plus all patches) -- another suspicious rcu_dereference_check() usage.

login
register
mail settings
Submitter Paul E. McKenney
Date April 30, 2010, 10:48 p.m.
Message ID <20100430224839.GA15238@linux.vnet.ibm.com>
Download mbox | patch
Permalink /patch/96096/
State New, archived
Headers show

Comments

Patch

diff --git a/include/linux/fdtable.h b/include/linux/fdtable.h
index 013dc52..e4a6d31 100644
--- a/include/linux/fdtable.h
+++ b/include/linux/fdtable.h
@@ -61,7 +61,8 @@  struct files_struct {
 	(rcu_dereference_check((fdtfd), \
 			       rcu_read_lock_held() || \
 			       lockdep_is_held(&(files)->file_lock) || \
-			       atomic_read(&(files)->count) == 1))
+			       atomic_read(&(files)->count) == 1 || \
+			       thread_group_empty(current)))
 
 #define files_fdtable(files) \
 		(rcu_dereference_check_fdtable((files), (files)->fdt))