diff options
| author | 2025-02-13 22:16:22 +0000 | |
|---|---|---|
| committer | 2025-03-20 16:53:55 -0700 | |
| commit | 978540050a85a2b7fc77b60a1cfaec110682e9c3 (patch) | |
| tree | 7e0e5e865774b16e751edcd306be58cbf03cf8a3 /tools/perf/scripts/python/sctop.py | |
| parent | nvme-multipath: Add visibility for queue-depth io-policy (diff) | |
| download | linux-rng-978540050a85a2b7fc77b60a1cfaec110682e9c3.tar.xz linux-rng-978540050a85a2b7fc77b60a1cfaec110682e9c3.zip | |
nvme-fc: Utilise min3() to simplify queue count calculation
Refactor nvme_fc_create_io_queues() and nvme_fc_recreate_io_queues() to
use the min3() macro to find the minimum between 3 values instead of
multiple min()'s. This shortens the code and makes it easier to read.
Signed-off-by: Qasim Ijaz <qasdev00@gmail.com>
Reviewed-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions
