Received: from eggs.gnu.org ([2001:4830:134:3::10]:36715) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bpZaX-0001Ip-0t for qemu-devel@nongnu.org; Thu, 29 Sep 2016 07:33:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bpZaV-0005UN-4m for qemu-devel@nongnu.org; Thu, 29 Sep 2016 07:33:15 -0400 Date: Thu, 29 Sep 2016 13:33:07 +0200 From: Kevin Wolf Message-ID: <20160929113307.GJ5742@noname.redhat.com> References: <1470683381-16680-1-git-send-email-jsnow@redhat.com> <57E94491.8090501@virtuozzo.com> <57EBB4A1.1000104@virtuozzo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <57EBB4A1.1000104@virtuozzo.com> Subject: Re: [Qemu-devel] [Qemu-block] [PATCH 0/5] blockjobs: Fix transactional race condition List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Vladimir Sementsov-Ogievskiy Cc: John Snow , qemu-devel , Stefan Hajnoczi , Jeff Cody , "Denis V. Lunev" , qemu block Am 28.09.2016 um 14:16 hat Vladimir Sementsov-Ogievskiy geschrieben: > >I think jobs will need to remain "one coroutine, one job" for now, > >but there's no reason why drive-backup or blockdev-backup can't > >just create multiple jobs each if that's what they need to do. > >(The backup job object could, in theory, just have another job > >pointer to a helper job if it really became necessary.) What's the problem with a job spawning additional coroutines internally? Jobs already do this all the time (AIO requests are just coroutines in disguise.) A job is basically just the user interface for managing a background process, so helper jobs that are managed internally rather than by the user don't seem to make that much sense. Kevin