Use the correct queue depth for nda devices.

Submitted by: Matt Williams
This commit is contained in:
Warner Losh 2017-08-08 16:06:16 +00:00
parent 16997138d3
commit d0e75394cf
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=322257

View file

@ -253,7 +253,7 @@ nvme_sim_new_controller(struct nvme_controller *ctrlr)
int unit;
struct nvme_sim_softc *sc = NULL;
max_trans = 256;/* XXX not so simple -- must match queues */
max_trans = ctrlr->num_io_queues;
unit = device_get_unit(ctrlr->dev);
devq = cam_simq_alloc(max_trans);
if (devq == NULL)