Date: Thu, 1 Feb 2018 16:44:19 +0000 (UTC) From: Alexander Motin <mav@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r328683 - stable/11/sys/dev/nvme Message-ID: <201802011644.w11GiJbg026020@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802011644.w11GiJbg026020>