mm: userfaultfd: remove stale comment about core dump locking
authorJann Horn <jannh@google.com>
Tue, 15 Aug 2023 21:22:16 +0000 (23:22 +0200)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 24 Aug 2023 23:20:27 +0000 (16:20 -0700)
commit004a9a38e20da6eb88fbfb7eeff0f3dd8a01776a
tree2346a5f6090ae5483c243080d7d0ae03de305503
parent00de2c9f26b15f1a6f2af516dd8ec5f8d28189b7
mm: userfaultfd: remove stale comment about core dump locking

Since commit 7f3bfab52cab ("mm/gup: take mmap_lock in get_dump_page()"),
which landed in v5.10, core dumping doesn't enter fault handling without
holding the mmap_lock anymore.  Remove the stale parts of the comments,
but leave the behavior as-is - letting core dumping block on userfault
handling would be a bad idea and could lead to deadlocks if the dumping
process was handling its own userfaults.

Link: https://lkml.kernel.org/r/20230815212216.264445-1-jannh@google.com
Signed-off-by: Jann Horn <jannh@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/userfaultfd.c