Commit 21620a4
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.
And the process_tx_queue has the same problem, maybe we can fix it, too.
Signed-off-by: Li Zebin <[email protected]>iter outside of the loop in process_rx_queue
1 parent 637969d commit 21620a4
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
453 | 453 | | |
454 | 454 | | |
455 | 455 | | |
456 | | - | |
| 456 | + | |
457 | 457 | | |
458 | | - | |
459 | | - | |
460 | | - | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
461 | 461 | | |
462 | 462 | | |
463 | 463 | | |
| |||
0 commit comments