Re: [PATCH v4 0/2] kexec, panic: Making crash_kexec() NMI safe

From: Andrew Morton
Date: Wed Jul 13 2022 - 13:39:43 EST


On Tue, 12 Jul 2022 12:13:03 +0100 Valentin Schneider <vschneid@xxxxxxxxxx> wrote:

> On 12/07/22 10:47, Baoquan He wrote:
> > Hi,
> >
> > On 06/30/22 at 11:32pm, Valentin Schneider wrote:
> >> Hi folks,
> >>
> >> Here's ~v3~ v4 where we now completely get rid of kexec_mutex.
> >>
> >> o Patch 1 makes sure all kexec_mutex acquisitions are trylocks. This prevents
> >> having to add any while(atomic_cmpxchg()) loops which I'd really hate to see
> >> here. If that can't be done then I think we're better off with the combined
> >> mutex+atomic var approach.
> >> o Patch 2 does the mutex -> atomic var switch.
> >
> > This series looks good, has it been taken into any tree?
> >
>
> I don't think so, briefly poked around git and haven't seen it anywhere.

I'll stash it away for consideration after -rc1.