From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [PATCH] virtio-blk: fallback to draining the queue if barrier ops are not supported Date: Thu, 15 Oct 2009 01:53:22 +0900 Message-ID: <4AD60202.2000205@redhat.com> References: <4AD5B00D.102@redhat.com> <1255521788-24346-1-git-send-email-avi@redhat.com> <90eb1dc70910140746t3e787f00q3d6784b38c3bd802@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: Christoph Hellwig , Matthew Tippett , Dustin Kirkland , Anthony Liguori , RW , kvm@vger.kernel.org To: Javier Guerra Return-path: Received: from mx1.redhat.com ([209.132.183.28]:11732 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934473AbZJNQyF (ORCPT ); Wed, 14 Oct 2009 12:54:05 -0400 In-Reply-To: <90eb1dc70910140746t3e787f00q3d6784b38c3bd802@mail.gmail.com> Sender: kvm-owner@vger.kernel.org List-ID: On 10/14/2009 11:46 PM, Javier Guerra wrote: > On Wed, Oct 14, 2009 at 7:03 AM, Avi Kivity wrote: > >> Early implementations of virtio devices did not support barrier operations, >> but did commit the data to disk. In such cases, drain the queue to emulate >> barrier operations. >> > would this help on the (i think common) situation with XFS on a > virtio-enabled VM, using LVM-backed storage; where LVM just loses > barriers. > No, it's a guest only patch. If LVM loses barriers, I don't think anything can restore them. -- I have a truly marvellous patch that fixes the bug which this signature is too narrow to contain.