![]() |
lvs-devel
|
| To: | Andrew Sy Kim <kim.andrewsy@xxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH net-next] ipvs: ensure RCU read unlock when connection flushing and ipvs is disabled |
| Cc: | Wensong Zhang <wensong@xxxxxxxxxxxx>, Simon Horman <horms@xxxxxxxxxxxx>, lvs-devel@xxxxxxxxxxxxxxx, netfilter-devel@xxxxxxxxxxxxxxx |
| From: | Julian Anastasov <ja@xxxxxx> |
| Date: | Thu, 16 Jul 2020 20:26:53 +0300 (EEST) |
Hello,
On Thu, 16 Jul 2020, Andrew Sy Kim wrote:
> When ipvs is disabled in ip_vs_expire_nodest_conn_flush,
> we should break instead of return so that rcu_read_unlock()
> is run.
>
> Signed-off-by: Andrew Sy Kim <kim.andrewsy@xxxxxxxxx>
Acked-by: Julian Anastasov <ja@xxxxxx>
> ---
> net/netfilter/ipvs/ip_vs_conn.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/net/netfilter/ipvs/ip_vs_conn.c b/net/netfilter/ipvs/ip_vs_conn.c
> index a5e9b2d55e57..a90b8eac16ac 100644
> --- a/net/netfilter/ipvs/ip_vs_conn.c
> +++ b/net/netfilter/ipvs/ip_vs_conn.c
> @@ -1422,7 +1422,7 @@ void ip_vs_expire_nodest_conn_flush(struct netns_ipvs
> *ipvs)
>
> /* netns clean up started, abort delayed work */
> if (!ipvs->enable)
> - return;
> + break;
> }
> rcu_read_unlock();
> }
> --
> 2.20.1
Regards
--
Julian Anastasov <ja@xxxxxx>
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH net-next] ipvs: ensure RCU read unlock when connection flushing and ipvs is disabled, Andrew Sy Kim |
|---|---|
| Next by Date: | [PATCH net-next] ipvs: missing unlock in ip_vs_expire_nodest_conn_flush(), Dan Carpenter |
| Previous by Thread: | [PATCH net-next] ipvs: ensure RCU read unlock when connection flushing and ipvs is disabled, Andrew Sy Kim |
| Next by Thread: | [PATCH net-next] ipvs: missing unlock in ip_vs_expire_nodest_conn_flush(), Dan Carpenter |
| Indexes: | [Date] [Thread] [Top] [All Lists] |