On Sat, Sep 18, 2021 at 12:36 AM Philipp Rudo <prudo(a)redhat.com> wrote:
Hi Kairui,
On Fri, 17 Sep 2021 02:03:27 +0800
Kairui Song <kasong(a)redhat.com> wrote:
> Only acquire the single instance lock when following commands are used:
>
> - kdumpctl start
> - kdumpctl restart
> - kdumpctl rebuild
> - kdumpctl reload
> - kdumpctl stop
> - kdumpctl propagate
in my opinion kdumpctl status should also be protected by the lock.
Otherwise there could be a race with e.g. kdumpctl start creating the
initramfs.
Thanks
Philipp
Good idea, I'll update it.
--
Best Regards,
Kairui Song