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

to make sure this is serialized correctly.

Signed-off-by: Florian Westphal <fw@strlen.de>
---
 tools/testing/selftests/net/rtnetlink.sh | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/tools/testing/selftests/net/rtnetlink.sh b/tools/testing/selftests/net/rtnetlink.sh
index 62c87da92770..13c29beb5769 100755
--- a/tools/testing/selftests/net/rtnetlink.sh
+++ b/tools/testing/selftests/net/rtnetlink.sh
@@ -278,6 +278,14 @@ kci_test_ifalias()
 	        ip link show "$devdummy" | grep -q "alias $namewant"
 		check_fail $?
 
+		for i in $(seq 1 100); do
+			uuidgen > "$syspathname" &
+		done
+
+		for i in $(seq 1 100); do
+			wait
+		done
+
 		# 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 net-next] selftests: rtnetlink: try concurrent change of ifalias
  2017-10-04 11:52 [PATCH net-next] selftests: rtnetlink: try concurrent change of ifalias Florian Westphal
@ 2017-10-04 14:16 ` Eric Dumazet
  0 siblings, 0 replies; 2+ messages in thread
From: Eric Dumazet @ 2017-10-04 14:16 UTC (permalink / raw)
  To: Florian Westphal; +Cc: netdev

On Wed, 2017-10-04 at 13:52 +0200, Florian Westphal wrote:
> to make sure this is serialized correctly.
> 
> Signed-off-by: Florian Westphal <fw@strlen.de>
> ---
>  tools/testing/selftests/net/rtnetlink.sh | 8 ++++++++
>  1 file changed, 8 insertions(+)
> 
> diff --git a/tools/testing/selftests/net/rtnetlink.sh b/tools/testing/selftests/net/rtnetlink.sh
> index 62c87da92770..13c29beb5769 100755
> --- a/tools/testing/selftests/net/rtnetlink.sh
> +++ b/tools/testing/selftests/net/rtnetlink.sh
> @@ -278,6 +278,14 @@ kci_test_ifalias()
>  	        ip link show "$devdummy" | grep -q "alias $namewant"
>  		check_fail $?
>  
> +		for i in $(seq 1 100); do
> +			uuidgen > "$syspathname" &
> +		done
> +
> +		for i in $(seq 1 100); do
> +			wait
> +		done
> +

A single wait is enough, you do not need a loop.

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

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

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

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.