Commit 7c35e26
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 54d609c commit 7c35e26
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 | | |
| |||
495 | 486 | | |
496 | 487 | | |
497 | 488 | | |
498 | | - | |
499 | | - | |
500 | | - | |
501 | | - | |
502 | | - | |
503 | | - | |
504 | | - | |
505 | | - | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
506 | 497 | | |
507 | 498 | | |
508 | 499 | | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
509 | 508 | | |
510 | 509 | | |
511 | 510 | | |
| |||
0 commit comments