From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cyrill Gorcunov Subject: Re: [PATCH] kvm tools: Process virito blk requests in separate thread Date: Tue, 5 Jun 2012 10:10:30 +0400 Message-ID: <20120605061030.GA15171@moon> References: <1338824453-25260-1-git-send-email-asias.hejun@gmail.com> <20120604154835.GE23701@moon> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Pekka Enberg , Sasha Levin , Ingo Molnar , kvm@vger.kernel.org To: Asias He Return-path: Received: from mail-lpp01m010-f46.google.com ([209.85.215.46]:62164 "EHLO mail-lpp01m010-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753153Ab2FEGKg (ORCPT ); Tue, 5 Jun 2012 02:10:36 -0400 Received: by lahd3 with SMTP id d3so3530511lah.19 for ; Mon, 04 Jun 2012 23:10:34 -0700 (PDT) Content-Disposition: inline In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: On Tue, Jun 05, 2012 at 08:47:17AM +0800, Asias He wrote: > > I must admit I don't understand this code ;) The data get read into > > stack variable forever? > > The data we read itself is not interesting at all. virtio_blk_thread() > sleeps on the eventfd bdev->io_efd until notify_vq() writes something > to wake it up. Ah, thanks for explanation, Asias. Cyrill