diff options
author | Sebastian | 2010-08-20 10:24:13 +0200 |
---|---|---|
committer | Sebastian | 2010-08-20 10:24:13 +0200 |
commit | 36cf3a03b229eef31bcb53e7b9b09f829010f8dc (patch) | |
tree | 09da8acb89aa37dafecfcd76c3fdf50ca3c2c3dc /kernel/dnbd2.h | |
parent | * fixed dnbd2 for newer kernel versions (compiled with 2.6.28-11-generic ubun... (diff) | |
download | dnbd2-36cf3a03b229eef31bcb53e7b9b09f829010f8dc.tar.gz dnbd2-36cf3a03b229eef31bcb53e7b9b09f829010f8dc.tar.xz dnbd2-36cf3a03b229eef31bcb53e7b9b09f829010f8dc.zip |
working with current kernel, ifdef switch for other kernel versions needs to be implemented
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; |