[PATCH] t/io_uring: Fix the parameters calculation for multiple threads scenario

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The this_done, this_call and this_reap parameter should be a summation of 
the corresponding field from all the submitters. 

Currently, we are adding the done, calls and reaps param of the last used 
submitter nthread times. 

Signed-off-by: Pankaj Raghav <p.raghav@xxxxxxxxxxx>
---
 t/io_uring.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/t/io_uring.c b/t/io_uring.c
index 5a80e074..a87042f8 100644
--- a/t/io_uring.c
+++ b/t/io_uring.c
@@ -1348,6 +1348,7 @@ int main(int argc, char *argv[])
 			stats_running = 1;
 
 		for (j = 0; j < nthreads; j++) {
+			s = get_submitter(j);
 			this_done += s->done;
 			this_call += s->calls;
 			this_reap += s->reaps;
-- 
2.25.1




[Index of Archives]     [Linux Kernel]     [Linux SCSI]     [Linux IDE]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux