Commit 00297f8
committed
vsock: Move
the iter() function is used for produce a queue iterator to iterate over the descriptors.
But usually, it shouldn't be in the while loop, which might brings more unnecessary overhead.
So move iter outside of the while loop.
Signed-off-by: Li Zebin <cutelizebin@gmail.com>iter outside of loop in process_tx_queue.1 parent 36a3f99 commit 00297f8
1 file changed
+8
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
607 | 607 | | |
608 | 608 | | |
609 | 609 | | |
610 | | - | |
611 | | - | |
612 | | - | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
613 | 615 | | |
614 | | - | |
615 | | - | |
616 | | - | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
617 | 619 | | |
618 | 620 | | |
619 | 621 | | |
| |||
0 commit comments