mirror of
https://git.openafs.org/openafs.git
synced 2025-02-01 14:07:39 +00:00
STABLE14-linux-global-sunlock-always-20050424
ok, well, in the land of pre-emption i guess we need this always (cherry picked from commit 3a30e787f2ab5c16bc1fdf34d74f67963ef63155)
This commit is contained in:
parent
4d9319bdc5
commit
f61c7f0972
@ -44,8 +44,8 @@
|
|||||||
#ifndef __SMP__
|
#ifndef __SMP__
|
||||||
#define __SMP__
|
#define __SMP__
|
||||||
#endif
|
#endif
|
||||||
#define AFS_GLOBAL_SUNLOCK
|
|
||||||
#endif
|
#endif
|
||||||
|
#define AFS_GLOBAL_SUNLOCK
|
||||||
#if defined(MODULE) && defined(CONFIG_MODVERSIONS)
|
#if defined(MODULE) && defined(CONFIG_MODVERSIONS)
|
||||||
#define MODVERSIONS
|
#define MODVERSIONS
|
||||||
#include <linux/modversions.h>
|
#include <linux/modversions.h>
|
||||||
|
@ -54,8 +54,8 @@
|
|||||||
#ifndef __SMP__
|
#ifndef __SMP__
|
||||||
#define __SMP__
|
#define __SMP__
|
||||||
#endif
|
#endif
|
||||||
#define AFS_GLOBAL_SUNLOCK
|
|
||||||
#endif
|
#endif
|
||||||
|
#define AFS_GLOBAL_SUNLOCK
|
||||||
#endif /* __KERNEL__ && !DUMP_KERNEL */
|
#endif /* __KERNEL__ && !DUMP_KERNEL */
|
||||||
|
|
||||||
#include <afs/afs_sysnames.h>
|
#include <afs/afs_sysnames.h>
|
||||||
|
@ -55,8 +55,8 @@
|
|||||||
#ifndef __SMP__
|
#ifndef __SMP__
|
||||||
#define __SMP__
|
#define __SMP__
|
||||||
#endif
|
#endif
|
||||||
#define AFS_GLOBAL_SUNLOCK
|
|
||||||
#endif
|
#endif
|
||||||
|
#define AFS_GLOBAL_SUNLOCK
|
||||||
|
|
||||||
#if defined(MODULE) && defined(CONFIG_MODVERSIONS)
|
#if defined(MODULE) && defined(CONFIG_MODVERSIONS)
|
||||||
#define MODVERSIONS
|
#define MODVERSIONS
|
||||||
|
@ -49,8 +49,8 @@
|
|||||||
#ifndef __SMP__
|
#ifndef __SMP__
|
||||||
#define __SMP__
|
#define __SMP__
|
||||||
#endif
|
#endif
|
||||||
#define AFS_GLOBAL_SUNLOCK
|
|
||||||
#endif
|
#endif
|
||||||
|
#define AFS_GLOBAL_SUNLOCK
|
||||||
|
|
||||||
#endif /* __KERNEL__ && !DUMP_KERNEL */
|
#endif /* __KERNEL__ && !DUMP_KERNEL */
|
||||||
|
|
||||||
|
@ -44,8 +44,8 @@
|
|||||||
#ifndef __SMP__
|
#ifndef __SMP__
|
||||||
#define __SMP__
|
#define __SMP__
|
||||||
#endif
|
#endif
|
||||||
#define AFS_GLOBAL_SUNLOCK
|
|
||||||
#endif
|
#endif
|
||||||
|
#define AFS_GLOBAL_SUNLOCK
|
||||||
|
|
||||||
#if defined(MODULE) && defined(CONFIG_MODVERSIONS)
|
#if defined(MODULE) && defined(CONFIG_MODVERSIONS)
|
||||||
#define MODVERSIONS
|
#define MODVERSIONS
|
||||||
|
@ -50,8 +50,8 @@
|
|||||||
#ifndef __SMP__
|
#ifndef __SMP__
|
||||||
#define __SMP__
|
#define __SMP__
|
||||||
#endif
|
#endif
|
||||||
#define AFS_GLOBAL_SUNLOCK
|
|
||||||
#endif
|
#endif
|
||||||
|
#define AFS_GLOBAL_SUNLOCK
|
||||||
|
|
||||||
#endif /* __KERNEL__ && !DUMP_KERNEL */
|
#endif /* __KERNEL__ && !DUMP_KERNEL */
|
||||||
|
|
||||||
|
@ -52,8 +52,8 @@
|
|||||||
#ifndef __SMP__
|
#ifndef __SMP__
|
||||||
#define __SMP__
|
#define __SMP__
|
||||||
#endif
|
#endif
|
||||||
#define AFS_GLOBAL_SUNLOCK
|
|
||||||
#endif
|
#endif
|
||||||
|
#define AFS_GLOBAL_SUNLOCK
|
||||||
|
|
||||||
#if defined(MODULE) && defined(CONFIG_MODVERSIONS)
|
#if defined(MODULE) && defined(CONFIG_MODVERSIONS)
|
||||||
#define MODVERSIONS
|
#define MODVERSIONS
|
||||||
|
@ -50,8 +50,8 @@
|
|||||||
#ifndef __SMP__
|
#ifndef __SMP__
|
||||||
#define __SMP__
|
#define __SMP__
|
||||||
#endif
|
#endif
|
||||||
#define AFS_GLOBAL_SUNLOCK
|
|
||||||
#endif
|
#endif
|
||||||
|
#define AFS_GLOBAL_SUNLOCK
|
||||||
|
|
||||||
#endif /* __KERNEL__ && !DUMP_KERNEL */
|
#endif /* __KERNEL__ && !DUMP_KERNEL */
|
||||||
|
|
||||||
|
@ -55,8 +55,8 @@
|
|||||||
#ifndef __SMP__
|
#ifndef __SMP__
|
||||||
#define __SMP__
|
#define __SMP__
|
||||||
#endif
|
#endif
|
||||||
#define AFS_GLOBAL_SUNLOCK
|
|
||||||
#endif
|
#endif
|
||||||
|
#define AFS_GLOBAL_SUNLOCK
|
||||||
|
|
||||||
#if defined(MODULE) && defined(CONFIG_MODVERSIONS)
|
#if defined(MODULE) && defined(CONFIG_MODVERSIONS)
|
||||||
#define MODVERSIONS
|
#define MODVERSIONS
|
||||||
|
@ -64,8 +64,8 @@
|
|||||||
#ifndef __SMP__
|
#ifndef __SMP__
|
||||||
#define __SMP__
|
#define __SMP__
|
||||||
#endif
|
#endif
|
||||||
#define AFS_GLOBAL_SUNLOCK
|
|
||||||
#endif
|
#endif
|
||||||
|
#define AFS_GLOBAL_SUNLOCK
|
||||||
|
|
||||||
#if defined(MODULE) && defined(CONFIG_MODVERSIONS)
|
#if defined(MODULE) && defined(CONFIG_MODVERSIONS)
|
||||||
#define MODVERSIONS
|
#define MODVERSIONS
|
||||||
|
@ -39,8 +39,8 @@
|
|||||||
#ifndef __SMP__
|
#ifndef __SMP__
|
||||||
#define __SMP__
|
#define __SMP__
|
||||||
#endif
|
#endif
|
||||||
#define AFS_GLOBAL_SUNLOCK
|
|
||||||
#endif
|
#endif
|
||||||
|
#define AFS_GLOBAL_SUNLOCK
|
||||||
|
|
||||||
#if defined(MODULE) && defined(CONFIG_MODVERSIONS)
|
#if defined(MODULE) && defined(CONFIG_MODVERSIONS)
|
||||||
#define MODVERSIONS
|
#define MODVERSIONS
|
||||||
|
@ -43,8 +43,8 @@
|
|||||||
#ifndef __SMP__
|
#ifndef __SMP__
|
||||||
#define __SMP__
|
#define __SMP__
|
||||||
#endif
|
#endif
|
||||||
#define AFS_GLOBAL_SUNLOCK
|
|
||||||
#endif
|
#endif
|
||||||
|
#define AFS_GLOBAL_SUNLOCK
|
||||||
|
|
||||||
#if defined(MODULE) && defined(CONFIG_MODVERSIONS)
|
#if defined(MODULE) && defined(CONFIG_MODVERSIONS)
|
||||||
#define MODVERSIONS
|
#define MODVERSIONS
|
||||||
|
@ -49,9 +49,8 @@
|
|||||||
#ifndef __SMP__
|
#ifndef __SMP__
|
||||||
#define __SMP__
|
#define __SMP__
|
||||||
#endif
|
#endif
|
||||||
#define AFS_GLOBAL_SUNLOCK
|
|
||||||
#endif
|
#endif
|
||||||
|
#define AFS_GLOBAL_SUNLOCK
|
||||||
|
|
||||||
#endif /* __KERNEL__ && !DUMP_KERNEL*/
|
#endif /* __KERNEL__ && !DUMP_KERNEL*/
|
||||||
|
|
||||||
|
@ -41,8 +41,8 @@
|
|||||||
#ifndef __SMP__
|
#ifndef __SMP__
|
||||||
#define __SMP__
|
#define __SMP__
|
||||||
#endif
|
#endif
|
||||||
#define AFS_GLOBAL_SUNLOCK
|
|
||||||
#endif
|
#endif
|
||||||
|
#define AFS_GLOBAL_SUNLOCK
|
||||||
|
|
||||||
#if defined(MODULE) && defined(CONFIG_MODVERSIONS)
|
#if defined(MODULE) && defined(CONFIG_MODVERSIONS)
|
||||||
#define MODVERSIONS
|
#define MODVERSIONS
|
||||||
|
@ -47,8 +47,8 @@
|
|||||||
#ifndef __SMP__
|
#ifndef __SMP__
|
||||||
#define __SMP__
|
#define __SMP__
|
||||||
#endif
|
#endif
|
||||||
#define AFS_GLOBAL_SUNLOCK
|
|
||||||
#endif
|
#endif
|
||||||
|
#define AFS_GLOBAL_SUNLOCK
|
||||||
|
|
||||||
#endif /* __KERNEL__ && !DUMP_KERNEL */
|
#endif /* __KERNEL__ && !DUMP_KERNEL */
|
||||||
|
|
||||||
|
@ -54,8 +54,8 @@
|
|||||||
#ifndef __SMP__
|
#ifndef __SMP__
|
||||||
#define __SMP__
|
#define __SMP__
|
||||||
#endif
|
#endif
|
||||||
#define AFS_GLOBAL_SUNLOCK
|
|
||||||
#endif
|
#endif
|
||||||
|
#define AFS_GLOBAL_SUNLOCK
|
||||||
#if defined(MODULE) && defined(CONFIG_MODVERSIONS)
|
#if defined(MODULE) && defined(CONFIG_MODVERSIONS)
|
||||||
#define MODVERSIONS
|
#define MODVERSIONS
|
||||||
#include <linux/modversions.h>
|
#include <linux/modversions.h>
|
||||||
|
@ -59,8 +59,8 @@
|
|||||||
#ifndef __SMP__
|
#ifndef __SMP__
|
||||||
#define __SMP__
|
#define __SMP__
|
||||||
#endif
|
#endif
|
||||||
#define AFS_GLOBAL_SUNLOCK
|
|
||||||
#endif
|
#endif
|
||||||
|
#define AFS_GLOBAL_SUNLOCK
|
||||||
#if defined(MODULE) && defined(CONFIG_MODVERSIONS)
|
#if defined(MODULE) && defined(CONFIG_MODVERSIONS)
|
||||||
#define MODVERSIONS
|
#define MODVERSIONS
|
||||||
#include <linux/modversions.h>
|
#include <linux/modversions.h>
|
||||||
|
@ -63,8 +63,8 @@
|
|||||||
#ifndef __SMP__
|
#ifndef __SMP__
|
||||||
#define __SMP__
|
#define __SMP__
|
||||||
#endif
|
#endif
|
||||||
#define AFS_GLOBAL_SUNLOCK
|
|
||||||
#endif
|
#endif
|
||||||
|
#define AFS_GLOBAL_SUNLOCK
|
||||||
extern unsigned long __per_cpu_offset[NR_CPUS];
|
extern unsigned long __per_cpu_offset[NR_CPUS];
|
||||||
extern SYSCALLTYPE sys_call_table_emu[] __attribute__((weak));
|
extern SYSCALLTYPE sys_call_table_emu[] __attribute__((weak));
|
||||||
#endif /* __KERNEL__ && !DUMP_KERNEL */
|
#endif /* __KERNEL__ && !DUMP_KERNEL */
|
||||||
|
@ -57,8 +57,8 @@
|
|||||||
#ifdef AFS_SMP
|
#ifdef AFS_SMP
|
||||||
#define CONFIG_SMP 1
|
#define CONFIG_SMP 1
|
||||||
#define __SMP__
|
#define __SMP__
|
||||||
#define AFS_GLOBAL_SUNLOCK
|
|
||||||
#endif
|
#endif
|
||||||
|
#define AFS_GLOBAL_SUNLOCK
|
||||||
|
|
||||||
#endif /* __KERNEL__ && !DUMP_KERNEL */
|
#endif /* __KERNEL__ && !DUMP_KERNEL */
|
||||||
#include <afs/afs_sysnames.h>
|
#include <afs/afs_sysnames.h>
|
||||||
|
@ -50,8 +50,8 @@
|
|||||||
#ifndef __SMP__
|
#ifndef __SMP__
|
||||||
#define __SMP__
|
#define __SMP__
|
||||||
#endif
|
#endif
|
||||||
#define AFS_GLOBAL_SUNLOCK
|
|
||||||
#endif
|
#endif
|
||||||
|
#define AFS_GLOBAL_SUNLOCK
|
||||||
|
|
||||||
#if defined(MODULE) && defined(CONFIG_MODVERSIONS)
|
#if defined(MODULE) && defined(CONFIG_MODVERSIONS)
|
||||||
#define MODVERSIONS
|
#define MODVERSIONS
|
||||||
|
@ -23,8 +23,6 @@ RCSID
|
|||||||
#include "rx_kmutex.h"
|
#include "rx_kmutex.h"
|
||||||
#include "rx/rx_kernel.h"
|
#include "rx/rx_kernel.h"
|
||||||
|
|
||||||
#if defined(CONFIG_SMP) || defined(CONFIG_PREEMPT)
|
|
||||||
|
|
||||||
void
|
void
|
||||||
afs_mutex_init(afs_kmutex_t * l)
|
afs_mutex_init(afs_kmutex_t * l)
|
||||||
{
|
{
|
||||||
@ -139,5 +137,3 @@ afs_cv_timedwait(afs_kcondvar_t * cv, afs_kmutex_t * l, int waittime)
|
|||||||
AFS_GLOCK();
|
AFS_GLOCK();
|
||||||
MUTEX_ENTER(l);
|
MUTEX_ENTER(l);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -24,7 +24,6 @@
|
|||||||
#define AFS_GLOBAL_RXLOCK_KERNEL 1
|
#define AFS_GLOBAL_RXLOCK_KERNEL 1
|
||||||
|
|
||||||
|
|
||||||
#if defined(CONFIG_SMP) || defined(CONFIG_PREEMPT)
|
|
||||||
#define RX_ENABLE_LOCKS 1
|
#define RX_ENABLE_LOCKS 1
|
||||||
|
|
||||||
#ifndef _LINUX_CODA_FS_I
|
#ifndef _LINUX_CODA_FS_I
|
||||||
@ -80,25 +79,4 @@ MUTEX_ISMINE(afs_kmutex_t * l)
|
|||||||
#define CV_BROADCAST(cv) wake_up((struct wait_queue**)cv)
|
#define CV_BROADCAST(cv) wake_up((struct wait_queue**)cv)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#else
|
|
||||||
|
|
||||||
#define MUTEX_ISMINE(a)
|
|
||||||
#define osirx_AssertMine(addr, msg)
|
|
||||||
|
|
||||||
#define MUTEX_DESTROY(a)
|
|
||||||
#define MUTEX_ENTER(a)
|
|
||||||
#define MUTEX_TRYENTER(a) 1
|
|
||||||
#define MUTEX_EXIT(a)
|
|
||||||
#define MUTEX_INIT(a,b,c,d)
|
|
||||||
#define CV_INIT(a,b,c,d)
|
|
||||||
#define CV_DESTROY(a)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Since we're using the RX listener daemon, we don't need to hold off
|
|
||||||
* interrupts.
|
|
||||||
*/
|
|
||||||
#define SPLVAR
|
|
||||||
#define NETPRI
|
|
||||||
#define USERPRI
|
|
||||||
|
|
||||||
#endif /* RX_KMUTEX_H_ */
|
#endif /* RX_KMUTEX_H_ */
|
||||||
|
@ -354,7 +354,7 @@ extern void osi_StopListener(void);
|
|||||||
|
|
||||||
|
|
||||||
/* ARCH/rx_kmutex.c */
|
/* ARCH/rx_kmutex.c */
|
||||||
#if defined(KERNEL) && defined(AFS_LINUX20_ENV) && (defined(CONFIG_SMP) || defined(CONFIG_PREEMPT))
|
#if defined(KERNEL) && defined(AFS_LINUX20_ENV)
|
||||||
extern void afs_mutex_init(afs_kmutex_t * l);
|
extern void afs_mutex_init(afs_kmutex_t * l);
|
||||||
extern void afs_mutex_enter(afs_kmutex_t * l);
|
extern void afs_mutex_enter(afs_kmutex_t * l);
|
||||||
extern int afs_mutex_tryenter(afs_kmutex_t * l);
|
extern int afs_mutex_tryenter(afs_kmutex_t * l);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user