Print this page
8629 nvme: rework command abortion
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>
Reviewed by: Jason King <jason.king@joyent.com>
Reviewed by: Robert Mustacchi <rm@joyent.com>

@@ -19,10 +19,11 @@
 
 #include <sys/ddi.h>
 #include <sys/sunddi.h>
 #include <sys/blkdev.h>
 #include <sys/taskq_impl.h>
+#include <sys/list.h>
 
 /*
  * NVMe driver state
  */
 

@@ -68,10 +69,12 @@
         size_t nd_len;
         boolean_t nd_cached;
 };
 
 struct nvme_cmd {
+        struct list_node nc_list;
+
         nvme_sqe_t nc_sqe;
         nvme_cqe_t nc_cqe;
 
         void (*nc_callback)(void *);
         bd_xfer_t *nc_xfer;

@@ -157,11 +160,11 @@
         int n_max_queue_entries;
         int n_pageshift;
         int n_pagesize;
 
         int n_namespace_count;
-        int n_ioq_count;
+        uint16_t n_ioq_count;
 
         nvme_identify_ctrl_t *n_idctl;
 
         nvme_qpair_t *n_adminq;
         nvme_qpair_t **n_ioq;