]> git.baikalelectronics.ru Git - kernel.git/commitdiff
selftests: rtnetlink: try concurrent change of ifalias
authorFlorian Westphal <fw@strlen.de>
Wed, 4 Oct 2017 14:22:59 +0000 (16:22 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Oct 2017 17:33:59 +0000 (10:33 -0700)
to make sure this is serialized correctly.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/rtnetlink.sh

index 62c87da927708b3b1315615ca5296dc03ccafae6..e8c86c416ed04751e0cf07daa2ca7543556db09b 100755 (executable)
@@ -278,6 +278,12 @@ kci_test_ifalias()
                ip link show "$devdummy" | grep -q "alias $namewant"
                check_fail $?
 
+               for i in $(seq 1 100); do
+                       uuidgen > "$syspathname" &
+               done
+
+               wait
+
                # re-add the alias -- kernel should free mem when dummy dev is removed
                ip link set dev "$devdummy" alias "$namewant"
                check_err $?