mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-05 16:10:55 +00:00
Use the correct queue depth for nda devices.
Submitted by: Matt Williams
This commit is contained in:
parent
16997138d3
commit
d0e75394cf
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=322257
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue