public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
From: bugzilla-daemon@bugzilla.kernel.org
To: linux-man@vger.kernel.org
Subject: [Bug 214873] man 2 fsync implies possibility to return early
Date: Sun, 31 Oct 2021 12:33:43 +0000	[thread overview]
Message-ID: <bug-214873-11311-wJr5YyKoLb@https.bugzilla.kernel.org/> (raw)
In-Reply-To: <bug-214873-11311@https.bugzilla.kernel.org/>

https://bugzilla.kernel.org/show_bug.cgi?id=214873

--- Comment #4 from sworddragon2@gmail.com ---
(In reply to Jens Axboe from comment #2)
> I don't know what the "see caches" mean in a few spots in the above
> text?

Dirty kernel cached data - as you described it.


(In reply to Jens Axboe from comment #2)
> If the device doesn't honor a cache flush (eg "all writes previously
> acked are now stable"), then there's nothing the kernel can do about it.

In such a case the kernel could still send out all dirty kernel cached data -
but the manpage strictly states fsync() would return early here with "The call
blocks until the device reports that the transfer has completed.". But in the
previous sentences it states it would not.

I assume if a storage device falsely claims the transfer has been completed
fsync() would still send out dirty kernel cached data if any and blocks until
this is done as this would make sense. This ticket is about clarifying this in
the manpage, e.g. if this assumption is correct the referenced sentence from
above could be changed to "The call blocks until dirty writes are sent out and
the device reports that the transfer has completed." or more appropriate if
needed.

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.

  parent reply	other threads:[~2021-10-31 12:33 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-29 21:25 [Bug 214873] New: man 2 fsync implies possibility to return early bugzilla-daemon
2021-10-30 12:05 ` [Bug 214873] " bugzilla-daemon
2021-10-30 15:17 ` bugzilla-daemon
2021-10-30 19:03 ` bugzilla-daemon
2021-10-31 12:33 ` bugzilla-daemon [this message]
2021-11-07 23:24 ` bugzilla-daemon
2021-11-12 20:22 ` bugzilla-daemon
2021-11-12 21:22 ` bugzilla-daemon
2021-11-12 23:38 ` bugzilla-daemon

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=bug-214873-11311-wJr5YyKoLb@https.bugzilla.kernel.org/ \
    --to=bugzilla-daemon@bugzilla.kernel.org \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox