[ 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 <email@example.com>
Signed-off-by: Richard Weinberger <firstname.lastname@example.org>
Signed-off-by: Sasha Levin <email@example.com>