Whamcloud - gitweb
LU-4423 obdclass: use workqueue for zombie management
[fs/lustre-release.git] / lustre / include / lustre_import.h
index 5ff1f84..c1c17bd 100644 (file)
@@ -42,6 +42,7 @@
  *
  * @{
  */
+#include <linux/workqueue.h>
 
 #include <lustre_handles.h>
 #include <uapi/linux/lustre/lustre_idl.h>
@@ -167,8 +168,8 @@ struct obd_import {
         struct ptlrpc_client     *imp_client;
        /** List element for linking into pinger chain */
        struct list_head          imp_pinger_chain;
-       /** List element for linking into chain for destruction */
-       struct list_head          imp_zombie_chain;
+       /** work struct for destruction of import */
+       struct work_struct        imp_zombie_work;
 
         /**
          * Lists of requests that are retained for replay, waiting for a reply,