]> git.baikalelectronics.ru Git - kernel.git/commit
dm snapshot: optimize track_chunk
authorMikulas Patocka <mpatocka@redhat.com>
Fri, 21 Dec 2012 20:23:33 +0000 (20:23 +0000)
committerAlasdair G Kergon <agk@redhat.com>
Fri, 21 Dec 2012 20:23:33 +0000 (20:23 +0000)
commit25ffa8e7da6b7401dfc0d8a064a9ce76972b195c
tree4464d72c53cc977dea9ddf071ed8d88ee6c312d9
parent03051c9a0f8844836ce62f01a4d096889ebadcf2
dm snapshot: optimize track_chunk

track_chunk is always called with interrupts enabled. Consequently, we
do not need to save and restore interrupt state in "flags" variable.
This patch changes spin_lock_irqsave to spin_lock_irq and
spin_unlock_irqrestore to spin_unlock_irq.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-snap.c