summaryrefslogtreecommitdiff
path: root/fs/cifs/ntlmssp.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2018-07-09 23:19:49 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2018-08-25 23:15:03 +0300
commit1b2de5d039c883c9d44ae5b2b6eca4ff9bd82dac (patch)
treeecae1ad75f1b24eba699b6aa0e2a2cb09a7d1c7f /fs/cifs/ntlmssp.h
parente0fcfe1f1acf2f129e0809ea89b9187e89e84246 (diff)
downloadlinux-1b2de5d039c883c9d44ae5b2b6eca4ff9bd82dac.tar.xz
mm/cow: don't bother write protecting already write-protected pages
This is not normally noticeable, but repeated forks are unnecessarily expensive because they repeatedly dirty the parent page tables during the page table copy operation. It's trivial to just avoid write protecting the page table entry if it was already not writable. This patch was inspired by https://bugzilla.kernel.org/show_bug.cgi?id=200447 which points to an ancient "waste time re-doing fork" issue in the presence of lots of signals. That bug was fixed by Eric Biederman's signal handling series culminating in commit c3ad2c3b02e9 ("signal: Don't restart fork when signals come in"), but the unnecessary work for repeated forks is still work just fixing, particularly since the fix is trivial. Cc: Eric Biederman <ebiederm@xmission.com> Cc: Oleg Nesterov <oleg@redhat.com> Cc: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/cifs/ntlmssp.h')
0 files changed, 0 insertions, 0 deletions