All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 net-next] selftests: rtnetlink: try concurrent change of ifalias
@ 2017-10-04 14:22 Florian Westphal
  2017-10-04 17:35 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Florian Westphal @ 2017-10-04 14:22 UTC (permalink / raw)
  To: netdev; +Cc: Florian Westphal

to make sure this is serialized correctly.

Signed-off-by: Florian Westphal <fw@strlen.de>
---
 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(+)

diff --git a/tools/testing/selftests/net/rtnetlink.sh b/tools/testing/selftests/net/rtnetlink.sh
index 62c87da92770..e8c86c416ed0 100755
--- a/tools/testing/selftests/net/rtnetlink.sh
+++ b/tools/testing/selftests/net/rtnetlink.sh
@@ -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 $?
-- 
2.13.6

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH v2 net-next] selftests: rtnetlink: try concurrent change of ifalias
  2017-10-04 14:22 [PATCH v2 net-next] selftests: rtnetlink: try concurrent change of ifalias Florian Westphal
@ 2017-10-04 17:35 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2017-10-04 17:35 UTC (permalink / raw)
  To: fw; +Cc: netdev

From: Florian Westphal <fw@strlen.de>
Date: Wed,  4 Oct 2017 16:22:59 +0200

> to make sure this is serialized correctly.
> 
> Signed-off-by: Florian Westphal <fw@strlen.de>
> ---
>  change since v1:
>  Eric points out 'wait' blocks for all current children, so no need
>  for another loop.

Applied.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-10-04 17:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-04 14:22 [PATCH v2 net-next] selftests: rtnetlink: try concurrent change of ifalias Florian Westphal
2017-10-04 17:35 ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.