Re: [PATCH] net: add a pre-check of net_ns in sk_change_net()

2014-03-10 Thread David Miller
From: Gu Zheng Date: Mon, 10 Mar 2014 09:57:34 +0800 > We do not need to switch the net_ns if the target net_ns the same > as the current one, so here we add a pre-check of net_ns to avoid > this as David suggested. > > Signed-off-by: Gu Zheng Applied to net-next, thank you. -- To unsubscribe

[PATCH] net: add a pre-check of net_ns in sk_change_net()

2014-03-09 Thread Gu Zheng
We do not need to switch the net_ns if the target net_ns the same as the current one, so here we add a pre-check of net_ns to avoid this as David suggested. Signed-off-by: Gu Zheng --- include/net/sock.h |8 ++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/include/net/