STABLE14-move-tasklist-lock-extern-outside-func-20070403

FIXES 53441

make tasklist-lock extern with pragma weak possibly work right


(cherry picked from commit 9c592530b18144ffbd91283fcd9690a9680c6cd9)
This commit is contained in:
Peter Breitenlohner 2007-04-03 19:57:06 +00:00 committed by Derrick Brashear
parent 89e90cadd4
commit 44e4664756

View File

@ -807,6 +807,9 @@ afs_osi_TraverseProcTable(void)
#endif
#if defined(AFS_LINUX22_ENV)
#ifdef EXPORTED_TASKLIST_LOCK
extern rwlock_t tasklist_lock __attribute__((weak));
#endif
void
afs_osi_TraverseProcTable()
{
@ -814,8 +817,6 @@ afs_osi_TraverseProcTable()
struct task_struct *p;
#ifdef EXPORTED_TASKLIST_LOCK
extern rwlock_t tasklist_lock __attribute__((weak));
if (&tasklist_lock)
read_lock(&tasklist_lock);
#endif