Thread (2 messages) 2 messages, 2 authors, 2024-11-01

[PATCH] madvise: MADV_SOFT_OFFLINE requests can return -EBUSY

From: <hidden>
Date: 2024-10-10 21:41:44
Subsystem: the rest · Maintainer: Linus Torvalds

If any page(s) within the add+length range could not be offlined madvise
will return -EBUSY. This might occur if the page is currently in use or
locked.

Signed-off-by: Tyonnchie Berry <redacted>

---
diff --git a/man/man2/madvise.2 b/man/man2/madvise.2
index 441edfbc1..13ee7957c 100644
--- a/man/man2/madvise.2
+++ b/man/man2/madvise.2
@@ -702,6 +702,11 @@ 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
+.B MADV_SOFT_OFFLINE )
+If any page(s) within the add+length range could not be offlined madvise will return -EBUSY. This might occur if the page is currently in use or locked.
+.TP
 .B EFAULT
 .I advice
 is
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help