mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 17:08:10 +00:00
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:
parent
5c45121dc3
commit
e9b871ee09
1 changed files with 6 additions and 0 deletions
|
@ -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 $?
|
||||
|
|
Loading…
Reference in a new issue