Author: mav
Date: Thu Feb  1 16:44:19 2018
New Revision: 328683
URL: https://svnweb.freebsd.org/changeset/base/328683

Log:
  MFC r322257 (by imp): Use the correct queue depth for nda devices.

Modified:
  stable/11/sys/dev/nvme/nvme_sim.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/dev/nvme/nvme_sim.c
==============================================================================
--- stable/11/sys/dev/nvme/nvme_sim.c   Thu Feb  1 16:43:48 2018        
(r328682)
+++ stable/11/sys/dev/nvme/nvme_sim.c   Thu Feb  1 16:44:19 2018        
(r328683)
@@ -261,7 +261,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)
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to