diff options
author | 2024-05-07 09:54:44 +0300 | |
---|---|---|
committer | 2024-05-07 08:04:02 -0700 | |
commit | c51a22e63ffde3033f74865a6e7b7d6e27cd6ab4 (patch) | |
tree | d8e93c02905cabe93306f0fce7d9cc11a73f65d8 /scripts/generate_rust_analyzer.py | |
parent | nvme: do not retry authentication failures (diff) | |
download | wireguard-linux-c51a22e63ffde3033f74865a6e7b7d6e27cd6ab4.tar.xz wireguard-linux-c51a22e63ffde3033f74865a6e7b7d6e27cd6ab4.zip |
nvmet-rdma: Avoid o(n^2) loop in delete_ctrl
When deleting a nvmet-rdma ctrl, we essentially loop over all
queues that belong to the controller and schedule a removal of
each. Instead of restarting the loop every time a queue is found,
do a simple safe list traversal.
This addresses an unneeded time spent scheduling queue removal in
cases there a lot of queues.
Signed-off-by: Sagi Grimberg <sagi.grimberg@vastdata.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions