From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: xen-devel <xen-devel@lists.xenproject.org>,
Boris Ostrovsky <boris.ostrovsky@oracle.com>,
David Vrabel <david.vrabel@citrix.com>,
Jan Beulich <JBeulich@suse.com>
Subject: Re: blkif discard attributes
Date: Tue, 15 Jul 2014 12:48:03 -0400 [thread overview]
Message-ID: <20140715164803.GC8768@laptop.dumpdata.com> (raw)
In-Reply-To: <1405328875.3087.1.camel@kazak.uk.xensource.com>
On Mon, Jul 14, 2014 at 10:07:55AM +0100, Ian Campbell wrote:
> On Mon, 2014-07-07 at 14:40 -0400, Konrad Rzeszutek Wilk wrote:
> > On Thu, Jul 03, 2014 at 11:24:30AM +0100, Jan Beulich wrote:
> > > >>> On 03.07.14 at 12:17, <david.vrabel@citrix.com> wrote:
> > > > On 03/07/14 11:08, Jan Beulich wrote:
> > > >>>>> On 03.07.14 at 11:43, <david.vrabel@citrix.com> wrote:
> > > >>> On 03/07/14 08:59, Jan Beulich wrote:
> > > >>>> discard_zeroes_data also be communicated from backend to frontend?
> > > >>>
> > > >>> Perhaps. But how would you handle a guest that used to have
> > > >>> discard_zeroes_data but is restored with different storage that no
> > > >>> longer has this property?
> > > >>
> > > >> Don't these attributes gets re-evaluated after restore anyway?
> > > >
> > > > I don't see how that helps. What if a discard request was submitted
> > > > before the suspend, expecting the discard to zero and on restore the
> > > > requests is queued for the new backend which then might not zero.
> > >
> > > Hmm, good point. So it's then indeed better to not communicate this.
> > > Albeit similar issues arise with the existing attributes we communicate:
> > > What if the new backend doesn't satisfy the assumptions on the old
> > > one? Possibly the request may get failed, but possibly it may also get
> > > executed wrongly. Neither of which is very desirable.
> >
> > That is OK with discard operations. It is OK if they fail intermediately.
>
> Are there not security implications to failing a discard? Or do the
> interfaces not make that promise to the higher layers?
No security implications. The semantics behind a discard (ATA UNMAP
or SCSI DISCARD) is that it is a hint to the storage device.
If it starts failing, then users can stop issuing the discard operations
(or they can continue).
>
> Ian.
>
next prev parent reply other threads:[~2014-07-15 16:48 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-03 7:59 blkif discard attributes Jan Beulich
2014-07-03 9:43 ` David Vrabel
2014-07-03 10:08 ` Jan Beulich
2014-07-03 10:17 ` David Vrabel
2014-07-03 10:24 ` Jan Beulich
2014-07-07 18:40 ` Konrad Rzeszutek Wilk
2014-07-14 9:07 ` Ian Campbell
2014-07-15 16:48 ` Konrad Rzeszutek Wilk [this message]
2014-07-16 8:29 ` Ian Campbell
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=20140715164803.GC8768@laptop.dumpdata.com \
--to=konrad.wilk@oracle.com \
--cc=Ian.Campbell@citrix.com \
--cc=JBeulich@suse.com \
--cc=boris.ostrovsky@oracle.com \
--cc=david.vrabel@citrix.com \
--cc=xen-devel@lists.xenproject.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.