[ Upstream commit 8892d8545f2d0342b9c550defbfb165db237044b ]
Changing protection is a very high cost operation in UML
because in addition to an extra syscall it also interrupts
mmap merge sequences generated by the tlb.
While the condition is not particularly common it is worth
Signed-off-by: Anton Ivanov <firstname.lastname@example.org>
Signed-off-by: Richard Weinberger <email@example.com>
Signed-off-by: Sasha Levin <firstname.lastname@example.org>