[PATCH] pstore: replace spinlock_t by raw_spinlock_t

2024-08-19 Thread Wen Yang
pstore_dump() is called when both preemption and local IRQ are disabled, and a spinlock is obtained, which is problematic for the RT kernel because in this configuration, spinlocks are sleep locks. Replace the spinlock_t with raw_spinlock_t to avoid sleeping in atomic context. Signed-off-by: Wen

Re: [PATCH] pstore: replace spinlock_t by raw_spinlock_t

2024-08-24 Thread Wen Yang
On 2024/8/20 01:45, Greg KH wrote: On Mon, Aug 19, 2024 at 10:59:45PM +0800, Wen Yang wrote: pstore_dump() is called when both preemption and local IRQ are disabled, and a spinlock is obtained, which is problematic for the RT kernel because in this configuration, spinlocks are sleep locks