From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43334) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHYAc-0006tc-VB for qemu-devel@nongnu.org; Mon, 27 Jun 2016 11:09:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bHYAY-0006YS-1d for qemu-devel@nongnu.org; Mon, 27 Jun 2016 11:09:53 -0400 Received: from mail-vk0-x242.google.com ([2607:f8b0:400c:c05::242]:34576) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHYAX-0006Xs-T4 for qemu-devel@nongnu.org; Mon, 27 Jun 2016 11:09:49 -0400 Received: by mail-vk0-x242.google.com with SMTP id v6so3609436vkb.1 for ; Mon, 27 Jun 2016 08:09:49 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20160624144605.GF5422@noname.redhat.com> References: <1466775608-31052-1-git-send-email-roman.penyaev@profitbricks.com> <20160624144605.GF5422@noname.redhat.com> From: Stefan Hajnoczi Date: Mon, 27 Jun 2016 16:09:48 +0100 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] [PATCH 1/1] Revert "linux-aio: Cancel BH if not needed" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf Cc: Roman Pen , Paolo Bonzini , qemu-devel , Stefan Hajnoczi On Fri, Jun 24, 2016 at 3:46 PM, Kevin Wolf wrote: > Am 24.06.2016 um 15:40 hat Roman Pen geschrieben: >> This reverts commit ccb9dc10129954d0bcd7814298ed445e684d5a2a, >> which causes MQ stuck while doing IO thru virtio_blk. > > It would be good to have a theory why this happens. It's worth taking the batch notify BH out of the equation in virtio_blk_data_plane_notify(): - set_bit(virtio_get_queue_index(vq), s->batch_notify_vqs); - qemu_bh_schedule(s->bh); + if (virtio_should_notify(s->vdev, vq)) { + event_notifier_set(virtio_queue_get_guest_notifier(vq)); + } I wonder if that makes any difference? I don't have a concrete theory why batch notify interferes with Kevin's patch though. Stefan