public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
From: Sage Weil <sage-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Cc: linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	Sage Weil <sage-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Subject: [PATCH] io_submit.2: acknowledge possibility of short return
Date: Thu,  7 Sep 2017 16:44:28 -0400	[thread overview]
Message-ID: <20170907204428.8344-1-sage@redhat.com> (raw)

Note that the return value may be a value less than nr
if not all iocbs were queued at once.  This would have saved
me an embarrassing amount of time.

Signed-off-by: Sage Weil <sage-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
---
 man2/io_submit.2 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/man2/io_submit.2 b/man2/io_submit.2
index 36465b64b..77ba34671 100644
--- a/man2/io_submit.2
+++ b/man2/io_submit.2
@@ -32,7 +32,7 @@ which will be submitted to context \fIctx_id\fP.
 On success,
 .BR io_submit ()
 returns the number of \fIiocb\fPs submitted (which may be
-0 if \fInr\fP is zero).
+less than \fInr\fP, or 0 if \fInr\fP is zero).
 For the failure return, see NOTES.
 .SH ERRORS
 .TP
-- 
2.13.3

--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

             reply	other threads:[~2017-09-07 20:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-07 20:44 Sage Weil [this message]
     [not found] ` <20170907204428.8344-1-sage-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2017-09-14 12:42   ` [PATCH] io_submit.2: acknowledge possibility of short return Michael Kerrisk (man-opages)

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=20170907204428.8344-1-sage@redhat.com \
    --to=sage-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
    --cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox