Re: [PATCH v7 1/8] dax: Use rwsem for dax_{read,write}_lock()

2021-10-19 Thread Shiyang Ruan
在 2021/10/15 1:48, Darrick J. Wong 写道: On Fri, Sep 24, 2021 at 09:09:52PM +0800, Shiyang Ruan wrote: In order to introduce dax holder registration, we need a write lock for dax. Because of the rarity of notification failures and the infrequency of registration events, it would be better to

Re: [PATCH v7 1/8] dax: Use rwsem for dax_{read,write}_lock()

2021-10-15 Thread Christoph Hellwig
On Fri, Sep 24, 2021 at 09:09:52PM +0800, Shiyang Ruan wrote: > In order to introduce dax holder registration, we need a write lock for > dax. Because of the rarity of notification failures and the infrequency > of registration events, it would be better to be a global lock rather > than

Re: [PATCH v7 1/8] dax: Use rwsem for dax_{read,write}_lock()

2021-10-14 Thread Darrick J. Wong
On Fri, Sep 24, 2021 at 09:09:52PM +0800, Shiyang Ruan wrote: > In order to introduce dax holder registration, we need a write lock for > dax. Because of the rarity of notification failures and the infrequency > of registration events, it would be better to be a global lock rather > than

[PATCH v7 1/8] dax: Use rwsem for dax_{read,write}_lock()

2021-09-24 Thread Shiyang Ruan
In order to introduce dax holder registration, we need a write lock for dax. Because of the rarity of notification failures and the infrequency of registration events, it would be better to be a global lock rather than per-device. So, change the current lock to rwsem and introduce a write lock