Skip to contentSkip to conversation

remove the tasklist_lock export

PATCH In review Christoph Hellwig 1 participant 1 message Jul 8, 2006

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 3/3 remove the tasklist_lock export

As announced half a year ago this patch will remove the tasklist_lock export. The previous two patches got rid of the remaining modular users.

Documentation/feature-removal-schedule.txt +0 -11
Index: linux-2.6/Documentation/feature-removal-schedule.txt
===================================================================
@@ -166,17 +166,6 @@
 
 ---------------------------
 
-What:	remove EXPORT_SYMBOL(tasklist_lock)
-When:	August 2006
-Files:	kernel/fork.c
-Why:	tasklist_lock protects the kernel internal task list.  Modules have
-	no business looking at it, and all instances in drivers have been due
-	to use of too-lowlevel APIs.  Having this symbol exported prevents
-	moving to more scalable locking schemes for the task list.
-Who:	Christoph Hellwig <[email protected]>
-
----------------------------
-
 What:	mount/umount uevents
 When:	February 2007
 Why:	These events are not correct, and do not properly let userspace know
kernel/fork.c +1 -3
Index: linux-2.6/kernel/fork.c
===================================================================
@@ -61,9 +61,7 @@
 
 DEFINE_PER_CPU(unsigned long, process_counts) = 0;
 
- __cacheline_aligned DEFINE_RWLOCK(tasklist_lock);  /* outer */
-
-EXPORT_SYMBOL(tasklist_lock);
+__cacheline_aligned DEFINE_RWLOCK(tasklist_lock);  /* outer */
 
 int nr_processes(void)
 {