diff options
Diffstat (limited to 'kernel/dnbd2.h')
-rw-r--r-- | kernel/dnbd2.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/kernel/dnbd2.h b/kernel/dnbd2.h index 2bf0f76..c87080c 100644 --- a/kernel/dnbd2.h +++ b/kernel/dnbd2.h @@ -12,6 +12,9 @@ #include <linux/inet.h> #include <linux/in.h> #include <linux/version.h> + +#include <linux/kthread.h> + #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,26) #include <linux/semaphore.h> #else @@ -74,6 +77,8 @@ struct srv_info { struct completion rx_start; /* dnbd2_rx_loop has started */ struct completion rx_stop; /* dnbd2_rx_loop has stopped */ + struct task_struct *dnbd_thread_task; + unsigned long retries; /* number of requests retried */ unsigned long last_reply; /* time of last reply */ }; @@ -99,6 +104,9 @@ struct dnbd2_device { spinlock_t send_queue_lock; struct list_head send_queue; + struct task_struct *dnbd_device_thread_task; + + unsigned long pending_reqs; /* number of block requests pending */ spinlock_t pending_queue_lock; struct list_head pending_queue; |