copy: remove obsolete mutex

This commit is contained in:
Thomas Schoebel-Theuer 2017-02-25 17:24:39 +01:00 committed by Thomas Schoebel-Theuer
parent 57e4327ad5
commit b6d4b69be8
2 changed files with 0 additions and 3 deletions

View File

@ -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;
} }

View File

@ -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;
}; };