[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20180904.122143.357979347828802599.davem@davemloft.net>
Date: Tue, 04 Sep 2018 12:21:43 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: vladbu@...lanox.com
Cc: netdev@...r.kernel.org, xiyou.wangcong@...il.com, jhs@...atatu.com,
jiri@...nulli.us
Subject: Re: [PATCH net-next v2] net: sched: action_ife: take reference to
meta module
From: Vlad Buslov <vladbu@...lanox.com>
Date: Tue, 4 Sep 2018 00:44:42 +0300
> Recent refactoring of add_metainfo() caused use_all_metadata() to add
> metainfo to ife action metalist without taking reference to module. This
> causes warning in module_put called from ife action cleanup function.
>
> Implement add_metainfo_and_get_ops() function that returns with reference
> to module taken if metainfo was added successfully, and call it from
> use_all_metadata(), instead of calling __add_metainfo() directly.
>
> Example warning:
...
> Fixes: 5ffe57da29b3 ("act_ife: fix a potential deadlock")
> Signed-off-by: Vlad Buslov <vladbu@...lanox.com>
> ---
>
> Changes V1->V2:
> - fold constants into helper function
Applied to 'net'.
Powered by blists - more mailing lists