[dm-devel] dm-snapshot: use mutex instead of rw-semaphore

Mike Snitzer snitzer at redhat.com
Fri Jan 5 20:24:09 UTC 2018


On Thu, Nov 23 2017 at  4:15pm -0500,
Mikulas Patocka <mpatocka at redhat.com> wrote:

> The rw-semaphore is acquired for read only on two places, none of them is
> performance-critical. So, we can replace it with a mutex.

Can you expand on why you'd like to avoid using a rw_semaphore?  mutex
being faster in the fast path?

Thanks,
Mike




More information about the dm-devel mailing list