Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e9b871ee authored by Florian Westphal's avatar Florian Westphal Committed by David S. Miller
Browse files

selftests: rtnetlink: try concurrent change of ifalias



to make sure this is serialized correctly.

Signed-off-by: default avatarFlorian Westphal <fw@strlen.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5c45121d
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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 $?