Re: [PATCH 8/8] mmap locking API: rename mmap_sem to mmap_lock

From: Davidlohr Bueso
Date: Mon Apr 06 2020 - 14:29:59 EST


On Mon, 06 Apr 2020, Laurent Dufour wrote:

Le 26/03/2020 à 08:02, Michel Lespinasse a écrit :
Rename the mmap_sem field to mmap_lock. Any new uses of this lock
should now go through the new mmap locking api. The mmap_lock is
still implemented as a rwsem, though this could change in the future.

Since you don't change the type of the mmap_sem, it's still a semaphore, I don't think mmap_lock is a good name. This is not a lock.

Well a semaphore is still a kind of lock. I think the naming in this
patch is good and generic enough.

Thanks,
Davidlohr