Thread View: linux.kernel.netdev
1 messages
1 total messages
Started by Jakub Kicinski
Fri, 09 Oct 2026 01:51
Re: [PATCH net 1/1] net: devlink: fix reload error on netns teardown
Author: Jakub Kicinski
Date: Fri, 09 Oct 2026 01:51
Date: Fri, 09 Oct 2026 01:51
20 lines
6079 bytes
6079 bytes
On Sun, 4 Oct 2026 02:14:42 +0800 Ren Wei wrote:
> err = devlink->ops->reload_down(devlink, !!dest_net, action, limit, extack);
> - if (err)
> + if (err) {
> + curr_net = devlink_net(devlink);
> + if (dest_net && curr_net->is_dying &&
> + !net_eq(dest_net, curr_net))
> + devlink_reload_netns_change(devlink, curr_net, dest_net);
> return err;
> + }
A bit of a weird place to put this code, and IDK why you're using
is_dying instead of check_net()?
I think the check belongs in devlink_pernet_pre_exit(), where we
know the curr_net is dying. Instead of trying to work backwards
from the netns state in the generic helper.
--
pw-bot: cr
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads