]> git.baikalelectronics.ru Git - kernel.git/commit
dm snapshot: use mutex instead of rw_semaphore
authorMikulas Patocka <mpatocka@redhat.com>
Thu, 23 Nov 2017 21:15:43 +0000 (16:15 -0500)
committerMike Snitzer <snitzer@redhat.com>
Wed, 17 Jan 2018 14:16:14 +0000 (09:16 -0500)
commit9e7e8d6e43e54f120b6c57889bce1cc48f3e3d7f
tree89fc4c9f1ff7226bb157c8ccf92b265186c02747
parent1184e53b67783a08b817979226a876fa83adcac7
dm snapshot: use mutex instead of rw_semaphore

The rw_semaphore is acquired for read only in two places, neither is
performance-critical.  So replace it with a mutex -- which is more
efficient.

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