[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CANn89i+V=+cOv_Qs-VwFqt0W6K8VU0pFh2KWtDPes1Cw6wa4dw@mail.gmail.com>
Date: Mon, 26 Jan 2026 12:27:31 +0100
From: Eric Dumazet <edumazet@...gle.com>
To: Qiliang Yuan <realwujing@...il.com>
Cc: brauner@...nel.org, davem@...emloft.net, kuba@...nel.org,
linux-kernel@...r.kernel.org, netdev@...r.kernel.org, pabeni@...hat.com,
yuanql9@...natelecom.cn
Subject: Re: [PATCH v2] netns: optimize netns cleaning by batching unhash_nsid calls
On Mon, Jan 26, 2026 at 12:25 PM Qiliang Yuan <realwujing@...il.com> wrote:
>
> Currently, unhash_nsid() scans the entire net_namespace_list for each
> netns in a destruction batch during cleanup_net(). This leads to
> O(M_batch * N_system * M_nsids) complexity, where M_batch is the
> destruction batch size, N_system is the total number of namespaces,
> and M_nsids is the number of IDs in each IDR.
Please wait ~24 hours before sending a new version.
Documentation/process/maintainer-netdev.rst
Resending after review
~~~~~~~~~~~~~~~~~~~~~~
Allow at least 24 hours to pass between postings. This will ensure reviewers
from all geographical locations have a chance to chime in. Do not wait
too long (weeks) between postings either as it will make it harder for reviewers
to recall all the context.
Make sure you address all the feedback in your new posting. Do not post a new
version of the code if the discussion about the previous version is still
ongoing, unless directly instructed by a reviewer.
The new version of patches should be posted as a separate thread,
not as a reply to the previous posting. Change log should include a link
to the previous posting (see :ref:`Changes requested`).
Powered by blists - more mailing lists