Repository navigation
Commit 35af577
Gleb Natapov
KVM: MMU: clenaup locking in mmu_free_roots()
Do locking around each case separately instead of having one lock and two
unlocks. Move root_hpa assignment out of the lock.
Signed-off-by: Gleb Natapov <gleb@redhat.com>1 parent 0061d53 commit 35af577
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2869 | 2869 | | |
2870 | 2870 | | |
2871 | 2871 | | |
2872 | | - | |
| 2872 | + | |
2873 | 2873 | | |
2874 | 2874 | | |
2875 | 2875 | | |
2876 | 2876 | | |
2877 | 2877 | | |
| 2878 | + | |
2878 | 2879 | | |
2879 | 2880 | | |
2880 | 2881 | | |
2881 | 2882 | | |
2882 | 2883 | | |
2883 | 2884 | | |
2884 | | - | |
2885 | 2885 | | |
| 2886 | + | |
2886 | 2887 | | |
2887 | 2888 | | |
| 2889 | + | |
| 2890 | + | |
2888 | 2891 | | |
2889 | 2892 | | |
2890 | 2893 | | |
| |||
0 commit comments