#include <linux/types.h>
#include <linux/ncp_mount.h>
#include <linux/net.h>
-#include <linux/mutex.h>
#ifdef __KERNEL__
receive replies */
int lock; /* To prevent mismatch in protocols. */
- struct mutex mutex;
+ struct semaphore sem;
int current_size; /* for packet preparation */
int has_subfunction;
struct {
struct work_struct tq; /* STREAM/DGRAM: data/error ready */
struct ncp_request_reply* creq; /* STREAM/DGRAM: awaiting reply from this request */
- struct mutex creq_mutex; /* DGRAM only: lock accesses to rcv.creq */
+ struct semaphore creq_sem; /* DGRAM only: lock accesses to rcv.creq */
unsigned int state; /* STREAM only: receiver state */
struct {