diff options
| author | Michael Roth <[email protected]> | 2023-11-03 15:13:54 +0000 |
|---|---|---|
| committer | Ard Biesheuvel <[email protected]> | 2023-11-28 11:49:21 +0000 |
| commit | 01b1e3ca0e5ce47bbae8217d47376ad01b331b07 (patch) | |
| tree | 58f8b4dce4a23d239744ade27a9a65d2abb0740d /drivers/net/netkit.c | |
| parent | Linux 6.7-rc3 (diff) | |
| download | kernel-01b1e3ca0e5ce47bbae8217d47376ad01b331b07.tar.gz kernel-01b1e3ca0e5ce47bbae8217d47376ad01b331b07.zip | |
efi/unaccepted: Fix off-by-one when checking for overlapping ranges
When a task needs to accept memory it will scan the accepting_list
to see if any ranges already being processed by other tasks overlap
with its range. Due to an off-by-one in the range comparisons, a task
might falsely determine that an overlapping range is being accepted,
leading to an unnecessary delay before it begins processing the range.
Fix the off-by-one in the range comparison to prevent this and slightly
improve performance.
Fixes: 50e782a86c98 ("efi/unaccepted: Fix soft lockups caused by parallel memory acceptance")
Link: https://lore.kernel.org/linux-mm/[email protected]/T/#me2eceb9906fcae5fe958b3fe88e41f920f8335b6
Reviewed-by: Kirill A. Shutemov <[email protected]>
Signed-off-by: Michael Roth <[email protected]>
Acked-by: Vlastimil Babka <[email protected]>
Signed-off-by: Ard Biesheuvel <[email protected]>
Diffstat (limited to 'drivers/net/netkit.c')
0 files changed, 0 insertions, 0 deletions
