selftests: rtnetlink: try concurrent change of ifalias
Subsystems (3)
PATCH v2 1/1 selftests: rtnetlink: try concurrent change of ifalias
to make sure this is serialized correctly.
Signed-off-by Florian Westphal <[email protected]>
---
change since v1:
Eric points out 'wait' blocks for all current children, so no need for another loop.
tools/testing/selftests/net/rtnetlink.sh | 6 ++++++ 1 file changed, 6 insertions(+)
tools/testing/selftests/net/rtnetlink.sh +6 -0
@@ -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 $?
Signature · 1 line
2.13.6
From: Florian Westphal <[email protected]>
Date: Wed, 4 Oct 2017 16:22:59 +0200
Quoted 7 lines
to make sure this is serialized correctly.
Signed-off-by Florian Westphal <[email protected]>---
change since v1:
Eric points out 'wait' blocks for all current children, so no need for another loop.
Applied.