qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH for-2.8 0/2] pass partial discard requests all the way down
@ 2016-11-10 23:10 Eric Blake
  2016-11-10 23:10 ` [Qemu-devel] [PATCH 1/2] block: Return -ENOTSUP rather than assert on unaligned discards Eric Blake
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Eric Blake @ 2016-11-10 23:10 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-stable, qemu-block, pbonzini, pl

Peter reported a mild regression in qemu 2.7 when targetting the
Dell Equallogic iSCSI, which advertizes a preferred and maximum
unmap alignment at 15M.  In qemu 2.6, trims not aligned to those
boundaries still made it to the device, but in 2.7, the block
layer is ignoring unaligned portions of guest requests, resulting
in fewer blocks being actually trimmed.

Since discard is advisary, it is borderline if this counts as a
bug fix worthy for inclusion in 2.8, or if it should be deferred
to 2.9.  At any rate, while I was able to test that the patch
didn't misbehave for me when I tweaked an NBD setup to force
15M alignment, I am unable to test that it makes an actual
difference for Peter's hardware, and that needs to happen before
anyone even thinks of applying this.

Eric Blake (2):
  block: Return -ENOTSUP rather than assert on unaligned discards
  block: Pass unaligned discard requests to drivers

 block/io.c       | 36 +++++++++++++++++++++++-------------
 block/iscsi.c    |  4 +++-
 block/qcow2.c    |  4 ++++
 block/sheepdog.c |  5 +++--
 4 files changed, 33 insertions(+), 16 deletions(-)

-- 
2.7.4

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-11-11 14:22 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-10 23:10 [Qemu-devel] [PATCH for-2.8 0/2] pass partial discard requests all the way down Eric Blake
2016-11-10 23:10 ` [Qemu-devel] [PATCH 1/2] block: Return -ENOTSUP rather than assert on unaligned discards Eric Blake
2016-11-10 23:10 ` [Qemu-devel] [PATCH 2/2] block: Pass unaligned discard requests to drivers Eric Blake
2016-11-11 10:58   ` [Qemu-devel] [Qemu-stable] " Peter Lieven
2016-11-11 14:22     ` Eric Blake
2016-11-11 10:09 ` [Qemu-devel] [PATCH for-2.8 0/2] pass partial discard requests all the way down Laszlo Ersek
2016-11-11 10:11   ` Laszlo Ersek
2016-11-11 14:15     ` Eric Blake

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).