Re: [RFC PATCH v2] fs/namespace: use percpu_rw_semaphore for writer holding

2020-07-20 Thread John Ogness
On 2020-07-19, Al Viro wrote: >> The MNT_WRITE_HOLD flag is used to manually implement a rwsem. > > Could you show me where does it currently sleep? Your version does, > unless I'm misreading it... You are reading it correctly. This patch introduces new possible sleeping for__mnt_want_write() wh

Re: [RFC PATCH v2] fs/namespace: use percpu_rw_semaphore for writer holding

2020-07-18 Thread Al Viro
On Thu, Jul 02, 2020 at 05:46:46PM +0200, Sebastian Andrzej Siewior wrote: > The MNT_WRITE_HOLD flag is used to manually implement a rwsem. Could you show me where does it currently sleep? Your version does, unless I'm misreading it...