act_ife: move tcfa_lock down to where necessary
authorCong Wang <xiyou.wangcong@gmail.com>
Sun, 19 Aug 2018 19:22:12 +0000 (12:22 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Aug 2018 19:45:45 +0000 (12:45 -0700)
commit4e407ff5cd67ec76eeeea1deec227b7982dc7f66
treebda0d20f01ee49435a477abc365b6c7879391dfe
parent8ce5be1c899d31f3cd047e5f707cd9dbfb81e076
act_ife: move tcfa_lock down to where necessary

The only time we need to take tcfa_lock is when adding
a new metainfo to an existing ife->metalist. We don't need
to take tcfa_lock so early and so broadly in tcf_ife_init().

This means we can always take ife_mod_lock first, avoid the
reverse locking ordering warning as reported by Vlad.

Reported-by: Vlad Buslov <vladbu@mellanox.com>
Tested-by: Vlad Buslov <vladbu@mellanox.com>
Cc: Vlad Buslov <vladbu@mellanox.com>
Cc: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/act_ife.c