madvise(2): madvise can return EBUSY on MADV_SOFT_OFFLINE requests.
(RHEL-34105) Resolves: RHEL-34105
This commit is contained in:
parent
cbd4800909
commit
4665dd5b03
33
RHEL-34105.patch
Normal file
33
RHEL-34105.patch
Normal file
@ -0,0 +1,33 @@
|
||||
commit 6f505f11556a13dd229dea904f54da2c1f3f90d4
|
||||
Author: tyberry@redhat.com <tyberry@redhat.com>
|
||||
Date: Tue Nov 26 11:12:03 2024 -0500
|
||||
|
||||
madvise.2: MADV_SOFT_OFFLINE requests can report EBUSY
|
||||
|
||||
If the page could not be offlined madvise will report EBUSY.
|
||||
This might occur if the page is currently in use or locked.
|
||||
|
||||
Signed-off-by: Tyonnchie Berry <tyberry@redhat.com>
|
||||
Message-Id: <Z0XzU9R9Kx0RoeUG@redhat.com>
|
||||
Acked-by: "Luis Claudio R. Goncalves" <lgoncalv@redhat.com>
|
||||
[alx: wfix, ffix, and other tweaks]
|
||||
Signed-off-by: Alejandro Colomar <alx@kernel.org>
|
||||
|
||||
diff --git a/man2/madvise.2 b/man2/madvise.2
|
||||
index 4f2210ee2..0dd481d21 100644
|
||||
--- a/man2/madvise.2
|
||||
+++ b/man2/madvise.2
|
||||
@@ -702,6 +702,13 @@ The map exists, but the area maps something that isn't a file.
|
||||
.BR MADV_COLLAPSE )
|
||||
Could not charge hugepage to cgroup: cgroup limit exceeded.
|
||||
.TP
|
||||
+.B EBUSY
|
||||
+(for
|
||||
+.BR MADV_SOFT_OFFLINE )
|
||||
+Any pages within the specified address range
|
||||
+could not be offlined.
|
||||
+This might occur if the page is currently in use or locked.
|
||||
+.TP
|
||||
.B EFAULT
|
||||
.I advice
|
||||
is
|
||||
@ -1,7 +1,7 @@
|
||||
Summary: Linux kernel and C library user-space interface documentation
|
||||
Name: man-pages
|
||||
Version: 6.04
|
||||
Release: 8%{?dist}
|
||||
Release: 9%{?dist}
|
||||
# List of licenses with examples of man-pages using them
|
||||
# BSD-2-Clause: man-pages/man5/elf.5
|
||||
# BSD-3-Clause: man-pages/man3/list.3
|
||||
@ -67,6 +67,7 @@ Patch29: RHEL-87625-1.patch
|
||||
Patch30: RHEL-87625-2.patch
|
||||
Patch31: RHEL-87625-3.patch
|
||||
Patch32: RHEL-87625-4.patch
|
||||
Patch33: RHEL-34105.patch
|
||||
|
||||
%description
|
||||
A large collection of manual pages from the Linux Documentation Project (LDP).
|
||||
@ -86,6 +87,7 @@ A large collection of manual pages from the Linux Documentation Project (LDP).
|
||||
%patch -p1 -P 30
|
||||
%patch -p1 -P 31
|
||||
%patch -p1 -P 32
|
||||
%patch -p1 -P 33
|
||||
|
||||
## Remove man pages we are not going to use ##
|
||||
|
||||
@ -138,6 +140,10 @@ fi
|
||||
%{_mandir}/man*/*
|
||||
|
||||
%changelog
|
||||
* Wed Nov 12 2025 Patsy Griffin <patsy@redhat.com> - 6.04-9
|
||||
- madvise(2): madvise can return EBUSY on MADV_SOFT_OFFLINE requests.
|
||||
Resolves: RHEL-34105
|
||||
|
||||
* Thu Oct 02 2025 Patsy Griffin <patsy@redhat.com> - 6.04-8
|
||||
- Document RWF_ATOMIC, STATX_ATTR_WRITE_ATOMIC flags (RHEL-87625)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user