From ebdb06bcb84fc1494631984949a8e3a2e4785f5c Mon Sep 17 00:00:00 2001 From: Hailiang Wang Date: Wed, 10 Jan 2018 15:37:27 +0800 Subject: [PATCH] stub: fix a io_queue_size limitation io_queue_size is 256(default) in stub.c, it probably be a limitation for some performance testing. Change-Id: Iaf4a15966e7b814323bd8bf134d8f657635aca8e Signed-off-by: Hailiang Wang Reviewed-on: https://review.gerrithub.io/394168 Tested-by: SPDK Automated Test System Reviewed-by: Ben Walker Reviewed-by: Jim Harris --- test/app/stub/stub.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/app/stub/stub.c b/test/app/stub/stub.c index 595e75bcb..00813476f 100644 --- a/test/app/stub/stub.c +++ b/test/app/stub/stub.c @@ -55,6 +55,11 @@ static bool probe_cb(void *cb_ctx, const struct spdk_nvme_transport_id *trid, struct spdk_nvme_ctrlr_opts *opts) { + /* + * Set the io_queue_size to UINT16_MAX to initialize + * the controller with the possible largest queue size. + */ + opts->io_queue_size = UINT16_MAX; return true; }