Re: [PATCH] md/raid5: make use of spin_lock_irq over local_irq_disable + spin_lock

2017-05-01 Thread Shaohua Li
On Fri, Apr 28, 2017 at 12:41:02PM -0500, Julia Cartwright wrote: > On mainline, there is no functional difference, just less code, and > symmetric lock/unlock paths. > > On PREEMPT_RT builds, this fixes the following warning, seen by > Alexander GQ Gerasiov, due to the sleeping nature of spinlock

[PATCH] md/raid5: make use of spin_lock_irq over local_irq_disable + spin_lock

2017-04-28 Thread Julia Cartwright
On mainline, there is no functional difference, just less code, and symmetric lock/unlock paths. On PREEMPT_RT builds, this fixes the following warning, seen by Alexander GQ Gerasiov, due to the sleeping nature of spinlocks. BUG: sleeping function called from invalid context at kernel/locking