From: Chris Mason <clm@fb.com>
To: Jens Axboe <axboe@kernel.dk>
Cc: Christoph Hellwig <hch@infradead.org>,
linux-fsdevel <linux-fsdevel@vger.kernel.org>,
"linux-block@vger.kernel.org" <linux-block@vger.kernel.org>,
"linux-api@vger.kernel.org" <linux-api@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] io_uring: add support for barrier fsync
Date: Tue, 9 Apr 2019 18:56:56 +0000 [thread overview]
Message-ID: <FBAE8433-865B-4D4D-B658-27E234FE829F@fb.com> (raw)
In-Reply-To: <a7f00629-f822-7271-7a4e-ad3b802752e4@kernel.dk>
On 9 Apr 2019, at 14:46, Jens Axboe wrote:
> On 4/9/19 12:42 PM, Chris Mason wrote:
>> Looking at the patch, why is fsync special? Seems like you could add
>> this ordering bit to any write?
>
> It's really not, the exact same technique could be used on any type of
> command to imply ordering. My initial idea was to have an explicit
> barrier/ordering command, but I didn't think that separating it from
> an
> actual command would be needed/useful.
Might want to order discards? Commit a transaction to free some blocks,
discard those blocks?
>
>> While you're here, do you want to add a way to FUA/cache flush?
>> Basically the rest of what user land would need to make their own
>> write-back-cache-safe implementation.
>
> FUA would be a WRITEV/WRITE_FIXED flag, that should be trivially
> doable.
>
> In terms of cache flush, that's very heavy handed (and storage
> oriented). What applications would want/need to do an explicit whole
> device flush?
Basically if someone is writing a userland filesystem they'd want to
cache flush for the same reasons the kernel filesystems do.
-chris
next prev parent reply other threads:[~2019-04-09 18:57 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <7c7276e4-8ffa-495a-6abf-926a58ee899e@kernel.dk>
2019-04-09 18:17 ` Christoph Hellwig
2019-04-09 18:23 ` Jens Axboe
2019-04-09 18:42 ` Chris Mason
2019-04-09 18:46 ` Jens Axboe
2019-04-09 18:56 ` Chris Mason [this message]
2019-04-11 11:05 ` Dave Chinner
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=FBAE8433-865B-4D4D-B658-27E234FE829F@fb.com \
--to=clm@fb.com \
--cc=axboe@kernel.dk \
--cc=hch@infradead.org \
--cc=linux-api@vger.kernel.org \
--cc=linux-block@vger.kernel.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@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
all inboxes | Powered by JetHome®