scripts/fio.py: don't print unnecessary qdepth warnings

Don't print messages like:
"Requested queue_depth 128 but only 128 is supported."

Change-Id: I377ad93bd5c784ae9a91fdf37343f1f47ab8184f
Signed-off-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/452078
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
Darek Stojaczyk 2019-04-25 13:07:41 +02:00 committed by Jim Harris
parent 33f60621af
commit e72445c4c8

View File

@ -147,7 +147,7 @@ def configure_devices(devices):
qd = qd - 1
if qd == 0:
print("Could not set block device queue depths.")
else:
elif qd < requested_qd:
print("Requested queue_depth {} but only {} is supported.".format(str(requested_qd), str(qd)))
if not set_device_parameter(devices, "/sys/block/%s/queue/scheduler", "noop"):
set_device_parameter(devices, "/sys/block/%s/queue/scheduler", "none")