diff options
author | Daniel Wagner <wagi@kernel.org> | 2025-05-07 14:22:59 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2025-05-20 05:34:26 +0200 |
commit | d54a9d7f6d74ee385d496f0efd282ce9d4fbfcbc (patch) | |
tree | c9b647ea84a2c30e95347a8fdd81737c898eedb5 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | b999efc8cf41420f9d9f8b08c111ad80e49b274e (diff) |
nvmet-fcloop: refactor fcloop_nport_alloc and track lport
The checks for a valid input values are mixed with the logic to insert a
newly allocated nport. Refactor the function so that first the checks
are done.
This allows to untangle the setup steps into a more linear form which
reduces the complexity of the functions.
Also start tracking lport when a lport is assigned to a nport. This
ensures, that the lport is not going away as long it is still referenced
by a nport.
Signed-off-by: Daniel Wagner <wagi@kernel.org>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions