Re: [PATCH v9 06/10] fsdax: Introduce dax_lock_mapping_entry()

2022-01-04 Thread Dan Williams
On Sun, Dec 26, 2021 at 6:35 AM Shiyang Ruan wrote: > > The current dax_lock_page() locks dax entry by obtaining mapping and > index in page. To support 1-to-N RMAP in NVDIMM, we need a new function > to lock a specific dax entry corresponding to this file's mapping,index. > And output the page c

Re: [PATCH v9 01/10] dax: Use percpu rwsem for dax_{read,write}_lock()

2022-01-04 Thread Dan Williams
On Sun, Dec 26, 2021 at 6:35 AM Shiyang Ruan wrote: > > In order to introduce dax holder registration, we need a write lock for > dax. As far as I can see, no, a write lock is not needed while the holder is being registered. The synchronization that is needed is to make sure that the device stay