mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 05:27:44 +00:00
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:
parent
89e90cadd4
commit
44e4664756
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user