diff options
author | David Hildenbrand <david@redhat.com> | 2023-07-11 19:40:50 +0200 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2023-08-18 19:12:19 +0200 |
commit | de7cb03db05a4b460edefff266bbaead70a11634 (patch) | |
tree | 878b09c205806f8604ac60806a1ee7aa104b1f99 /fs/ntfs/bitmap.c | |
parent | HWPOISON: offline support: fix spelling in Documentation/ABI/ (diff) | |
download | linux-de7cb03db05a4b460edefff266bbaead70a11634.tar.xz linux-de7cb03db05a4b460edefff266bbaead70a11634.zip |
mm/memory_hotplug: document the signal_pending() check in offline_pages()
Let's update the documentation that any signal is sufficient, and add a
comment that not only checking for fatal signals is historical baggage:
changing it now could break existing user space. although unlikely.
For example, when an app provides a custom SIGALRM handler and triggers
memory offlining, the timeout cmd would no longer stop memory offlining,
because SIGALRM would no longer be considered a fatal signal.
Note that using signal_pending() instead of fatal_signal_pending() is
an anti-pattern, but slowly deprecating that behavior to eventually
change it in the far future is probably not worth the effort. If this
ever becomes relevant for user-space, we might want to rethink.
Link: https://lkml.kernel.org/r/20230711174050.603820-1-david@redhat.com
Signed-off-by: David Hildenbrand <david@redhat.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Cc: Oscar Salvador <osalvador@suse.de>
Cc: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'fs/ntfs/bitmap.c')
0 files changed, 0 insertions, 0 deletions