datapath: Avoid system freeze due to ovs-flow-rehash softlockup.
[openvswitch] / datapath / linux / compat / workqueue.c
index 883665bf45e3b2e0d6519a01ec0556443341f627..9934f1a397b4ccd9e096f16561940f083bfc2248 100644 (file)
@@ -23,8 +23,6 @@
 #include <linux/lockdep.h>
 #include <linux/idr.h>
 
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23)
-
 static spinlock_t wq_lock;
 static struct list_head workq;
 static wait_queue_head_t more_work;
@@ -210,4 +208,3 @@ void  ovs_workqueues_exit(void)
        BUG_ON(!list_empty(&workq));
        kthread_stop(workq_thread);
 }
-#endif