On Fri, 5 Jan 2018, Mike Snitzer wrote:
> On Thu, Nov 23 2017 at 4:15pm -0500, > Mikulas Patocka <[email protected]> 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 Mutex code is simpler. Mutex is used more often in the kernel than rw-semaphore, so using mutex causes less i-cache pollution. Mikulas -- dm-devel mailing list [email protected] https://www.redhat.com/mailman/listinfo/dm-devel
