All of lore.kernel.org
 help / color / mirror / Atom feed
From: tyberry@redhat.com
To: Alejandro Colomar <alx@kernel.org>
Cc: linux-man@vger.kernel.org, lgoncalv@redhat.com
Subject: [PATCH v2] madvise: MADV_SOFT_OFFLINE requests can return -EBUSY
Date: Tue, 26 Nov 2024 11:12:03 -0500	[thread overview]
Message-ID: <Z0XzU9R9Kx0RoeUG@redhat.com> (raw)

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


             reply	other threads:[~2024-11-26 16:12 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-26 16:12 tyberry [this message]
2024-11-28 11:35 ` [PATCH v2] madvise: MADV_SOFT_OFFLINE requests can return -EBUSY 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Z0XzU9R9Kx0RoeUG@redhat.com \
    --to=tyberry@redhat.com \
    --cc=alx@kernel.org \
    --cc=lgoncalv@redhat.com \
    --cc=linux-man@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.