[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20171004115258.5878-1-fw@strlen.de>
Date: Wed, 4 Oct 2017 13:52:58 +0200
From: Florian Westphal <fw@...len.de>
To: <netdev@...r.kernel.org>
Cc: Florian Westphal <fw@...len.de>
Subject: [PATCH net-next] selftests: rtnetlink: try concurrent change of ifalias
to make sure this is serialized correctly.
Signed-off-by: Florian Westphal <fw@...len.de>
---
tools/testing/selftests/net/rtnetlink.sh | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/tools/testing/selftests/net/rtnetlink.sh b/tools/testing/selftests/net/rtnetlink.sh
index 62c87da92770..13c29beb5769 100755
--- a/tools/testing/selftests/net/rtnetlink.sh
+++ b/tools/testing/selftests/net/rtnetlink.sh
@@ -278,6 +278,14 @@ kci_test_ifalias()
ip link show "$devdummy" | grep -q "alias $namewant"
check_fail $?
+ for i in $(seq 1 100); do
+ uuidgen > "$syspathname" &
+ done
+
+ for i in $(seq 1 100); do
+ wait
+ done
+
# re-add the alias -- kernel should free mem when dummy dev is removed
ip link set dev "$devdummy" alias "$namewant"
check_err $?
--
2.13.6
Powered by blists - more mailing lists