public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] madvise: MADV_SOFT_OFFLINE requests can return -EBUSY
@ 2024-11-26 16:12 tyberry
  2024-11-28 11:35 ` Alejandro Colomar
  0 siblings, 1 reply; 6+ messages in thread
From: tyberry @ 2024-11-26 16:12 UTC (permalink / raw)
  To: Alejandro Colomar; +Cc: linux-man, lgoncalv

If the page 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 <tyberry@redhat.com>

---

diff --git a/man/man2/madvise.2 b/man/man2/madvise.2
index 4f2210ee2..c10dcd599 100644
--- a/man/man2/madvise.2
+++ b/man/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
+.B MADV_SOFT_OFFLINE )
+If any pages 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


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-12-04 20:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-26 16:12 [PATCH v2] madvise: MADV_SOFT_OFFLINE requests can return -EBUSY tyberry
2024-11-28 11:35 ` Alejandro Colomar
2024-11-29 21:43   ` Luis Claudio R. Goncalves
2024-12-04 20:35     ` Alejandro Colomar
2024-12-04 20:45       ` Luis Claudio R. Goncalves
2024-12-04 20:51         ` Alejandro Colomar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox