]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit190d9e2c607663f2fc0ff6ca6670595035ba2b1b
tree51e0dc028ac41ac94a57bc0f18b87d340ef32de8
parentd3ef96f296514d163bd112920b206a9456c3ab00
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