Commit 01f89b6
committed
test/recv-mshot-fair: submit !DEFER receives at the same time
The test currently allows !DEFER to be unfair after resubmission,
because it would arm each recv as needed and submit it at the same time.
This means that once they are all done, R1 will be submitted separately
and process the remaining, and repeat for R2..R4. That causes
unfairness, as only one recv would be pending at the time for that case.
Keep track of pending submits and do them in one go, preserving fairness
even for !DEFER.
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent ed1108f commit 01f89b6
1 file changed
Lines changed: 9 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | | - | |
| 158 | + | |
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
| 199 | + | |
199 | 200 | | |
200 | 201 | | |
201 | 202 | | |
| |||
224 | 225 | | |
225 | 226 | | |
226 | 227 | | |
227 | | - | |
| 228 | + | |
228 | 229 | | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
229 | 234 | | |
230 | 235 | | |
231 | 236 | | |
| |||
455 | 460 | | |
456 | 461 | | |
457 | 462 | | |
458 | | - | |
459 | 463 | | |
460 | 464 | | |
461 | 465 | | |
| |||
467 | 471 | | |
468 | 472 | | |
469 | 473 | | |
470 | | - | |
471 | | - | |
472 | | - | |
473 | | - | |
474 | | - | |
475 | | - | |
476 | | - | |
| 474 | + | |
477 | 475 | | |
478 | 476 | | |
479 | 477 | | |
| |||
484 | 482 | | |
485 | 483 | | |
486 | 484 | | |
487 | | - | |
488 | | - | |
489 | | - | |
490 | | - | |
491 | | - | |
492 | | - | |
493 | | - | |
| 485 | + | |
494 | 486 | | |
495 | 487 | | |
496 | 488 | | |
| |||
0 commit comments