svn commit: r322257 - head/sys/dev/nvme

Warner Losh imp at FreeBSD.org
Tue Aug 8 16:06:17 UTC 2017


Author: imp
Date: Tue Aug  8 16:06:16 2017
New Revision: 322257
URL: https://svnweb.freebsd.org/changeset/base/322257

Log:
  Use the correct queue depth for nda devices.
  
  Submitted by: Matt Williams

Modified:
  head/sys/dev/nvme/nvme_sim.c

Modified: head/sys/dev/nvme/nvme_sim.c
==============================================================================
--- head/sys/dev/nvme/nvme_sim.c	Tue Aug  8 15:46:29 2017	(r322256)
+++ head/sys/dev/nvme/nvme_sim.c	Tue Aug  8 16:06:16 2017	(r322257)
@@ -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)


More information about the svn-src-head mailing list