lkml.org 
[lkml]   [2023]   [Oct]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCHv2] efi/unaccepted: Fix soft lockups caused by parallel memory acceptance
On Tue, Oct 17, 2023 at 09:42:13AM +0200, Ard Biesheuvel wrote:

> One question I have is whether the sequence
>
> spin_lock_irqsave(&unaccepted_memory_lock, flags);
> ...
> spin_unlock(&unaccepted_memory_lock);
> arch_accept_memory(phys_start, phys_end);
> spin_lock(&unaccepted_memory_lock);
> ...
> spin_unlock_irqrestore(&unaccepted_memory_lock, flags);
>
> is considered sound and is supported by all architectures?

Yes.

\
 
 \ /
  Last update: 2023-10-17 12:20    [W:0.145 / U:0.040 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site