Date: Tue, 8 Aug 2017 16:06:16 +0000 (UTC) From: Warner Losh <imp@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r322257 - head/sys/dev/nvme Message-ID: <201708081606.v78G6GSI062611@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201708081606.v78G6GSI062611>