selftests: rtnetlink: try concurrent change of ifalias
to make sure this is serialized correctly. Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
5c45121dc3
commit
e9b871ee09
@@ -278,6 +278,12 @@ kci_test_ifalias()
|
|||||||
ip link show "$devdummy" | grep -q "alias $namewant"
|
ip link show "$devdummy" | grep -q "alias $namewant"
|
||||||
check_fail $?
|
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
|
# re-add the alias -- kernel should free mem when dummy dev is removed
|
||||||
ip link set dev "$devdummy" alias "$namewant"
|
ip link set dev "$devdummy" alias "$namewant"
|
||||||
check_err $?
|
check_err $?
|
||||||
|
|||||||
Reference in New Issue
Block a user