mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 15:30:14 +00:00
linux-rx-spinlocks-for-preempt-20050320
FIXES 17966 force linux spinlocks on when CONFIG_PREEMPT is involved
This commit is contained in:
parent
1aa23c6653
commit
158f2d91b9
@ -23,7 +23,7 @@ RCSID
|
|||||||
#include "rx_kmutex.h"
|
#include "rx_kmutex.h"
|
||||||
#include "rx/rx_kernel.h"
|
#include "rx/rx_kernel.h"
|
||||||
|
|
||||||
#ifdef CONFIG_SMP
|
#if defined(CONFIG_SMP) || defined(CONFIG_PREEMPT)
|
||||||
|
|
||||||
void
|
void
|
||||||
afs_mutex_init(afs_kmutex_t * l)
|
afs_mutex_init(afs_kmutex_t * l)
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
#define AFS_GLOBAL_RXLOCK_KERNEL 1
|
#define AFS_GLOBAL_RXLOCK_KERNEL 1
|
||||||
|
|
||||||
|
|
||||||
#ifdef CONFIG_SMP
|
#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
|
||||||
|
@ -354,7 +354,7 @@ extern void osi_StopListener(void);
|
|||||||
|
|
||||||
|
|
||||||
/* ARCH/rx_kmutex.c */
|
/* ARCH/rx_kmutex.c */
|
||||||
#ifdef CONFIG_SMP
|
#if defined(CONFIG_SMP) || defined(CONFIG_PREEMPT)
|
||||||
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…
Reference in New Issue
Block a user