Updated structs to use completion{} and wait_queue_head_t{} and added struct size checkes in hfi1_aio_write()

This commit is contained in:
Aram Santogidis
2017-08-08 17:07:00 +09:00
committed by Balazs Gerofi
parent 1c4a6568e6
commit 74a636a612
5 changed files with 24 additions and 36 deletions

View File

@ -113,10 +113,11 @@ struct kref {
atomic_t refcount;
};
typedef struct {
struct wait_queue_head_t {
spinlock_t lock;
struct list_head task_list;
} wait_queue_head_t ;
};
typedef struct wait_queue_head_t wait_queue_head_t;
struct completion {
unsigned int done;