From 841d968a14cfb3eb02897d5b111d184a330e5dfb Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Tue, 13 Feb 2007 18:45:25 +0000 Subject: [PATCH] STABLE14-amd64-syscall-probe-20070212 FIXES 53441 based on suggested change from cg2v@andrew.cmu.edu tasklist_lock not being exported makes this useless otherwise S: ---------------------------------------------------------------------- ==================== This delta was composed from multiple commits as part of the CVS->Git migration. The checkin message with each commit was inconsistent. The following are the additional commit messages. ==================== FIXES 53441 based on suggested change from cg2v@andrew.cmu.edu tasklist_lock not being exported makes this useless otherwise (cherry picked from commit 5b0ba22734f8a354f26ca2600e96608e72a3f9e4) --- src/afs/LINUX/osi_probe.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/afs/LINUX/osi_probe.c b/src/afs/LINUX/osi_probe.c index f83767cb9..611305b44 100644 --- a/src/afs/LINUX/osi_probe.c +++ b/src/afs/LINUX/osi_probe.c @@ -247,9 +247,6 @@ extern asmlinkage long sys_exit (int) __attribute__((weak)); extern asmlinkage long sys_open (const char *, int, int) __attribute__((weak)); #endif extern asmlinkage long sys_ioctl(unsigned int, unsigned int, unsigned long) __attribute__((weak)); -#if defined(EXPORTED_TASKLIST_LOCK) -extern rwlock_t tasklist_lock __attribute__((weak)); -#endif /* Structures used to control probing. We put all the details of which @@ -517,7 +514,7 @@ static probectl main_probe = { (unsigned long)&sys_close, #elif defined(AFS_AMD64_LINUX20_ENV) /* On this platform, it's in a different section! */ - (unsigned long)&tasklist_lock, + (unsigned long)&generic_ro_fops, #else (unsigned long)&init_mm, #endif @@ -539,7 +536,7 @@ static probectl main_probe = { 0x1fffff, 0x30000, #elif defined(AFS_AMD64_LINUX20_ENV) - (unsigned long)(&tasklist_lock) - 0x30000, + (unsigned long)(&generic_ro_fops) - 0x30000, 0, 0x6000, #elif defined(AFS_PPC64_LINUX26_ENV) -- 2.39.5