drivers/md/raid5: Use irqsave variant of atomic_dec_and_lock()
authorAnna-Maria Gleixner <anna-maria@linutronix.de>
Tue, 3 Jul 2018 20:01:36 +0000 (22:01 +0200)
committerShaohua Li <shli@fb.com>
Thu, 19 Jul 2018 02:45:02 +0000 (19:45 -0700)
commit685dbcaa25becfba864b72ec3f03470833b7f692
tree01eaac015d0ef34db834a8f31c61ecdad65712a2
parentebc7709f65001911f275e13dd5f29b02803c0688
drivers/md/raid5: Use irqsave variant of atomic_dec_and_lock()

The irqsave variant of atomic_dec_and_lock handles irqsave/restore when
taking/releasing the spin lock. With this variant the call of
local_irq_save is no longer required.

Cc: Shaohua Li <shli@kernel.org>
Cc: linux-raid@vger.kernel.org
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Anna-Maria Gleixner <anna-maria@linutronix.de>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/raid5.c