test/sq-poll-{share,dup}: use prepped SQEs as what to wait for

Don't rely on the io_uring_submit(), it's racy with the SQPOLL
thread.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
diff --git a/test/sq-poll-dup.c b/test/sq-poll-dup.c
index 5c6975a..baba734 100644
--- a/test/sq-poll-dup.c
+++ b/test/sq-poll-dup.c
@@ -93,8 +93,8 @@
 		off += BS;
 	}
 
-	ret = io_uring_submit(ring);
-	return ret;
+	io_uring_submit(ring);
+	return i;
 }
 
 static int do_io(int fd, int ring_start, int ring_end)
diff --git a/test/sq-poll-share.c b/test/sq-poll-share.c
index 5741362..0f25389 100644
--- a/test/sq-poll-share.c
+++ b/test/sq-poll-share.c
@@ -91,7 +91,8 @@
 		off += BS;
 	}
 
-	return io_uring_submit(ring);
+	io_uring_submit(ring);
+	return i;
 }
 
 int main(int argc, char *argv[])