OSDN Git Service

dm cache: replace spin_lock_irqsave with spin_lock_irq
authorMikulas Patocka <mpatocka@redhat.com>
Wed, 23 Oct 2019 13:39:15 +0000 (09:39 -0400)
committerMike Snitzer <snitzer@redhat.com>
Tue, 5 Nov 2019 19:53:04 +0000 (14:53 -0500)
commit26b924b93c7bd68add372e24d25b86848c507921
tree51e0dc028ac41ac94a57bc0f18b87d340ef32de8
parent235bc8616060514ce57053e51d0a81f7fab96f01
dm cache: replace spin_lock_irqsave with spin_lock_irq

If we are in a place where it is known that interrupts are enabled,
functions spin_lock_irq/spin_unlock_irq should be used instead of
spin_lock_irqsave/spin_unlock_irqrestore.

spin_lock_irq and spin_unlock_irq are faster because they don't need to
push and pop the flags register.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-cache-target.c