Received: from eggs.gnu.org ([2001:4830:134:3::10]:56505) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c58lo-0003dY-UN for qemu-devel@nongnu.org; Fri, 11 Nov 2016 05:09:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c58lo-0006Pf-40 for qemu-devel@nongnu.org; Fri, 11 Nov 2016 05:09:16 -0500 References: <1478819426-7564-1-git-send-email-eblake@redhat.com> From: Laszlo Ersek Message-ID: Date: Fri, 11 Nov 2016 11:09:06 +0100 MIME-Version: 1.0 In-Reply-To: <1478819426-7564-1-git-send-email-eblake@redhat.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH for-2.8 0/2] pass partial discard requests all the way down List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake , qemu-devel@nongnu.org Cc: pbonzini@redhat.com, pl@kamp.de, qemu-stable@nongnu.org, qemu-block@nongnu.org On 11/11/16 00:10, Eric Blake wrote: > 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, advisory? > 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(-) >