From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:34950) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TaCub-0000ZF-Co for qemu-devel@nongnu.org; Sun, 18 Nov 2012 17:00:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TaCuY-00043d-Ak for qemu-devel@nongnu.org; Sun, 18 Nov 2012 17:00:21 -0500 Received: from mail.profihost.ag ([85.158.179.208]:43146) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TaCuY-00042L-0z for qemu-devel@nongnu.org; Sun, 18 Nov 2012 17:00:18 -0500 Message-ID: <50A95A6A.4010109@profihost.ag> Date: Sun, 18 Nov 2012 23:00:10 +0100 From: Stefan Priebe MIME-Version: 1.0 References: <589082222.7272963.1352241778123.JavaMail.root@redhat.com> In-Reply-To: <589082222.7272963.1352241778123.JavaMail.root@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] scsi-hd with discard_granularity and unmap results in Aborted Commands List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: qemu-devel@nongnu.org Hi Paolo, Am 06.11.2012 23:42, schrieb Paolo Bonzini: > >> i wantes to use scsi unmap with rbd. rbd documention says you need to >> set discard_granularity=512 for the device. I'm using qemu 1.2. >> >> If i set this and send an UNMAP command i get this kernel output: > > The discard request is failing. Please check why with a breakpoint on > rbd_aio_discard_wrapper or scsi_handle_rw_error for example. > > Paolo I'm sorry the discard requests aren't failing. Qemu / Block driver starts to cancel a bunch of requests. [ 39.577194] sd 2:0:0:1: [sdb] [ 39.577194] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE [ 39.577194] sd 2:0:0:1: [sdb] [ 39.577194] Sense Key : Aborted Command [current] [ 39.577194] sd 2:0:0:1: [sdb] [ 39.577194] Add. Sense: I/O process terminated [ 39.577194] sd 2:0:0:1: [sdb] CDB: [ 39.577194] Write same(16): 93 08 00 00 00 00 04 7f ff f7 00 62 00 09 00 00 [ 39.577194] end_request: I/O error, dev sdb, sector 75497463 Greets, Stefan