]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
DEVEL15-amd64-syscall-probe-20070212
authorDerrick Brashear <shadow@dementia.org>
Tue, 13 Feb 2007 18:45:43 +0000 (18:45 +0000)
committerDerrick Brashear <shadow@dementia.org>
Tue, 13 Feb 2007 18:45:43 +0000 (18:45 +0000)
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

index f83767cb9f7f2a3655a6882eed5824eed51082a7..611305b44bc949bf26d1827a1bbe5a776589be26 100644 (file)
@@ -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)