From: Christoph Hellwig <hch@lst.de>
To: ronnie sahlberg <ronniesahlberg@gmail.com>
Cc: kwolf@redhat.com, Christoph Hellwig <hch@lst.de>,
stefanha@linux.vnet.ibm.com, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] iSCSI support for QEMU, update
Date: Fri, 22 Apr 2011 08:38:48 +0200 [thread overview]
Message-ID: <20110422063848.GA11449@lst.de> (raw)
In-Reply-To: <BANLkTinw0EmXFU8SNkDsvX=G_ohF1tWWTg@mail.gmail.com>
On Fri, Apr 22, 2011 at 04:35:11PM +1000, ronnie sahlberg wrote:
> Ok, I am confused
And this time it's my fault, sorry.
> I have to set FUA if the WB(I guessed this meant write-back) flag is set?
> Not the opposite (I assume opposite of write-back is write-through) ?
Sorry, I meant exactly the opposite. You do not have to set FUA if either
of those two flags is present, so:
if (flags & (BDRV_O_CACHE_WB|BDRV_O_NOCACHE))
caching is ok, write with FUA=0
else
caching is NOT ok, write with FUA=1
next prev parent reply other threads:[~2011-04-22 6:38 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-21 20:23 [Qemu-devel] iSCSI support for QEMU, update ronniesahlberg
2011-04-22 4:08 ` Christoph Hellwig
2011-04-22 6:08 ` ronnie sahlberg
2011-04-22 6:13 ` Christoph Hellwig
2011-04-22 6:35 ` ronnie sahlberg
2011-04-22 6:38 ` Christoph Hellwig [this message]
-- strict thread matches above, loose matches on Subject: below --
2011-05-07 6:17 Ronnie Sahlberg
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=20110422063848.GA11449@lst.de \
--to=hch@lst.de \
--cc=kwolf@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=ronniesahlberg@gmail.com \
--cc=stefanha@linux.vnet.ibm.com \
/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;
as well as URLs for NNTP newsgroup(s).