Commit 1d032f7
committed
fix(block): only notify guest once
Currently block device has a guest notification logic
inside it's request processing loop. This can create a
situation when guest can continuously add more requests to the
queue, making the whole request processing loop arbitrary long.
This is an issue, since it block any other IO from being processed.
The solution is to simply notify guest one time, after all current
requests are processed.
Signed-off-by: Egor Lazarchuk <[email protected]>
Signed-off-by: Riccardo Mancini <[email protected]>1 parent 6b7dea5 commit 1d032f7
1 file changed
+33
-34
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
384 | 384 | | |
385 | 385 | | |
386 | 386 | | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | | - | |
399 | | - | |
400 | | - | |
401 | | - | |
402 | | - | |
403 | | - | |
404 | | - | |
405 | 387 | | |
406 | 388 | | |
407 | 389 | | |
| |||
422 | 404 | | |
423 | 405 | | |
424 | 406 | | |
425 | | - | |
426 | 407 | | |
427 | 408 | | |
428 | 409 | | |
| |||
443 | 424 | | |
444 | 425 | | |
445 | 426 | | |
446 | | - | |
447 | | - | |
448 | | - | |
449 | | - | |
450 | | - | |
451 | | - | |
452 | | - | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
453 | 436 | | |
454 | 437 | | |
455 | 438 | | |
456 | 439 | | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
457 | 448 | | |
458 | 449 | | |
459 | 450 | | |
| |||
493 | 484 | | |
494 | 485 | | |
495 | 486 | | |
496 | | - | |
497 | | - | |
498 | | - | |
499 | | - | |
500 | | - | |
501 | | - | |
502 | | - | |
503 | | - | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
504 | 495 | | |
505 | 496 | | |
506 | 497 | | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
507 | 506 | | |
508 | 507 | | |
509 | 508 | | |
| |||
0 commit comments