[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190205130838.GG2133@nanopsycho>
Date: Tue, 5 Feb 2019 14:08:38 +0100
From: Jiri Pirko <jiri@...nulli.us>
To: Vlad Buslov <vladbu@...lanox.com>
Cc: netdev@...r.kernel.org, jhs@...atatu.com, xiyou.wangcong@...il.com,
davem@...emloft.net, ast@...nel.org, daniel@...earbox.net
Subject: Re: [PATCH net-next v3 10/16] net: sched: prevent insertion of new
classifiers during chain flush
Mon, Feb 04, 2019 at 01:32:55PM CET, vladbu@...lanox.com wrote:
>Extend tcf_chain with 'flushing' flag. Use the flag to prevent insertion of
>new classifier instances when chain flushing is in progress in order to
>prevent resource leak when tcf_proto is created by unlocked users
>concurrently.
>
>Return EAGAIN error from tcf_chain_tp_insert_unique() to restart
>tc_new_tfilter() and lookup the chain/proto again.
>
>Signed-off-by: Vlad Buslov <vladbu@...lanox.com>
Acked-by: Jiri Pirko <jiri@...lanox.com>
Powered by blists - more mailing lists