On 9/17/2025 12:14 AM, Sebastian Reichel wrote:
Hi,
On Fri, Aug 15, 2025 at 08:05:06PM +0530, Shivendra Pratap wrote:
quoted
List traversals must be synchronized to prevent race conditions
and data corruption. The reboot-mode list is not protected by a
lock currently, which can lead to concurrent access and race.
Introduce a mutex lock to guard all operations on the reboot-mode
list and ensure thread-safe access. The change prevents unsafe
concurrent access on reboot-mode list.
Signed-off-by: Shivendra Pratap <redacted>
---
This should use scoped_guard() and a Fixes: tag. Otherwise LGTM.
ACK. Will update this patch based on scoped_guard() and add a Fixes tag.
thanks,
Shivendra