commit | e5d1a1eec0f4b51d0a7a6457d0b1b99b34f3e901 | [log] [tgz] |
---|---|---|
author | Ying Xue <ying.xue@windriver.com> | Wed Feb 14 13:37:58 2018 +0800 |
committer | David S. Miller <davem@davemloft.net> | Wed Feb 14 14:46:32 2018 -0500 |
tree | 73be7be8911658b34337ca861ce2efdb1f62e535 | |
parent | 361b1231801944ddecbd0e383420932633cac2d1 [diff] |
tipc: Refactor __tipc_nl_compat_doit As preparation for adding RTNL to make (*cmd->transcode)() and (*cmd->transcode)() constantly protected by RTNL lock, we move out of memory allocations existing between them as many as possible so that the time of holding RTNL can be minimized in __tipc_nl_compat_doit(). Signed-off-by: Ying Xue <ying.xue@windriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>