References: <3df057f7-cab7-4886-ed46-12084157eb45@siemens.com> From: Philippe Gerum Subject: Re: dovetail vs. ipipe: COW-breaking in copy_pte_range In-reply-to: <3df057f7-cab7-4886-ed46-12084157eb45@siemens.com> Date: Fri, 23 Oct 2020 14:29:39 +0200 Message-ID: <87y2jx86rw.fsf@xenomai.org> MIME-Version: 1.0 Content-Type: text/plain List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan Kiszka Cc: Xenomai , "Meng, Fino" Jan Kiszka writes: > Hi Philippe, > > a merge conflict in 5.4-stable requires me to look into [1]. It states: > >> Revisit: Further COW breaking in copy_user_page() and copy_pte_range() >> may be useless once __ipipe_disable_ondemand_mappings() has run for a >> co-kernel task, since all of its mappings have been populated, and >> unCOWed if applicable. > > And if I look into the dovetail baseline commit, this logic is indeed > gone. Did you revisit this and came to the conclusion that it can safely > be dropped? Or did it take other changes in dovetail to make it > obsolete? Would help to resolve [2] if we could simply drop it... > I dropped it from Dovetail because mlock already breaks COW for private mappings, shared ones cannot be COWed, so I don't see any reason to enforce this again. -- Philippe.