dm thin: replace spin_lock_irqsave with spin_lock_irq
authorMikulas Patocka <mpatocka@redhat.com>
Tue, 15 Oct 2019 12:16:29 +0000 (08:16 -0400)
committerMike Snitzer <snitzer@redhat.com>
Tue, 5 Nov 2019 19:38:26 +0000 (14:38 -0500)
commit8e0c9dacc39eccd27e70cf3243896b43f5398c17
tree864e186b834816c32a752d7e9f3c832442a0e092
parent52c67d416b26be1f91fbcbd57cfcf6ffca76ff29
dm thin: 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-thin.c