Commit 680a383
vduse: take out allocations from vduse_dev_alloc_coherent
[ Upstream commit 489d765 ]
The function vduse_dev_alloc_coherent will be called under rwlock in
next patches. Make it out of the lock to avoid increasing its fail
rate.
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Eugenio Pérez <eperezma@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Message-Id: <20260119143306.1818855-10-eperezma@redhat.com>
Stable-dep-of: 9c15238 ("VDUSE: avoid leaking information to userspace")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent 0a0f90a commit 680a383
3 files changed
Lines changed: 19 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
479 | 479 | | |
480 | 480 | | |
481 | 481 | | |
482 | | - | |
483 | | - | |
484 | | - | |
| 482 | + | |
| 483 | + | |
485 | 484 | | |
486 | 485 | | |
487 | 486 | | |
488 | 487 | | |
489 | | - | |
490 | 488 | | |
491 | | - | |
492 | | - | |
| 489 | + | |
| 490 | + | |
493 | 491 | | |
494 | 492 | | |
495 | 493 | | |
| |||
500 | 498 | | |
501 | 499 | | |
502 | 500 | | |
503 | | - | |
| 501 | + | |
504 | 502 | | |
505 | | - | |
506 | 503 | | |
507 | | - | |
508 | | - | |
509 | | - | |
510 | | - | |
511 | | - | |
| 504 | + | |
512 | 505 | | |
513 | | - | |
| 506 | + | |
514 | 507 | | |
515 | 508 | | |
516 | 509 | | |
| |||
519 | 512 | | |
520 | 513 | | |
521 | 514 | | |
522 | | - | |
523 | 515 | | |
524 | 516 | | |
525 | 517 | | |
| |||
531 | 523 | | |
532 | 524 | | |
533 | 525 | | |
534 | | - | |
535 | 526 | | |
536 | 527 | | |
537 | 528 | | |
538 | 529 | | |
539 | | - | |
540 | 530 | | |
541 | 531 | | |
542 | 532 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
62 | | - | |
63 | | - | |
| 61 | + | |
| 62 | + | |
64 | 63 | | |
65 | 64 | | |
66 | 65 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
851 | 851 | | |
852 | 852 | | |
853 | 853 | | |
854 | | - | |
855 | 854 | | |
856 | 855 | | |
857 | 856 | | |
858 | | - | |
859 | | - | |
| 857 | + | |
| 858 | + | |
860 | 859 | | |
861 | 860 | | |
862 | 861 | | |
863 | | - | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
864 | 865 | | |
865 | 866 | | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
866 | 871 | | |
867 | 872 | | |
868 | 873 | | |
| |||
873 | 878 | | |
874 | 879 | | |
875 | 880 | | |
| 881 | + | |
876 | 882 | | |
877 | 883 | | |
878 | 884 | | |
| |||
0 commit comments