mirror of
https://github.com/schoebel/mars
synced 2025-02-18 04:57:10 +00:00
copy: remove obsolete mutex
This commit is contained in:
parent
57e4327ad5
commit
b6d4b69be8
@ -998,7 +998,6 @@ static int copy_brick_construct(struct copy_brick *brick)
|
|||||||
}
|
}
|
||||||
|
|
||||||
init_waitqueue_head(&brick->event);
|
init_waitqueue_head(&brick->event);
|
||||||
sema_init(&brick->mutex, 1);
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -25,7 +25,6 @@
|
|||||||
#define MARS_COPY_H
|
#define MARS_COPY_H
|
||||||
|
|
||||||
#include <linux/wait.h>
|
#include <linux/wait.h>
|
||||||
#include <linux/semaphore.h>
|
|
||||||
|
|
||||||
#define INPUT_A_IO 0
|
#define INPUT_A_IO 0
|
||||||
#define INPUT_A_COPY 1
|
#define INPUT_A_COPY 1
|
||||||
@ -102,7 +101,6 @@ struct copy_brick {
|
|||||||
atomic_t copy_write_flight;
|
atomic_t copy_write_flight;
|
||||||
long long last_jiffies;
|
long long last_jiffies;
|
||||||
wait_queue_head_t event;
|
wait_queue_head_t event;
|
||||||
struct semaphore mutex;
|
|
||||||
struct task_struct *thread;
|
struct task_struct *thread;
|
||||||
struct copy_state **st;
|
struct copy_state **st;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user