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,28 ****
--- 19,29 ----
#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,77 ****
--- 69,80 ----
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,167 ****
int n_max_queue_entries;
int n_pageshift;
int n_pagesize;
int n_namespace_count;
! int n_ioq_count;
nvme_identify_ctrl_t *n_idctl;
nvme_qpair_t *n_adminq;
nvme_qpair_t **n_ioq;
--- 160,170 ----
int n_max_queue_entries;
int n_pageshift;
int n_pagesize;
int n_namespace_count;
! uint16_t n_ioq_count;
nvme_identify_ctrl_t *n_idctl;
nvme_qpair_t *n_adminq;
nvme_qpair_t **n_ioq;