From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:59091) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TBLtQ-0007Dn-5E for qemu-devel@nongnu.org; Tue, 11 Sep 2012 04:32:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TBLtG-0002Vj-Gr for qemu-devel@nongnu.org; Tue, 11 Sep 2012 04:32:24 -0400 Received: from mx1.redhat.com ([209.132.183.28]:36636) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TBLtG-0002Vf-8k for qemu-devel@nongnu.org; Tue, 11 Sep 2012 04:32:14 -0400 Message-ID: <504EF706.8050206@redhat.com> Date: Tue, 11 Sep 2012 11:32:06 +0300 From: Avi Kivity MIME-Version: 1.0 References: <1347349912-15611-1-git-send-email-qemulist@gmail.com> <1347349912-15611-9-git-send-email-qemulist@gmail.com> In-Reply-To: <1347349912-15611-9-git-send-email-qemulist@gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH V3 08/11] qom: introduce reclaimer to release obj in async List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Liu Ping Fan Cc: Jan Kiszka , Marcelo Tosatti , qemu-devel@nongnu.org, Anthony Liguori , Paolo Bonzini On 09/11/2012 10:51 AM, Liu Ping Fan wrote: > From: Liu Ping Fan > > DeviceState will be protected by refcnt from disappearing during > dispatching. But when refcnt comes down to zero, DeviceState may > be still in use by iohandler, timer etc in main loop, we just delay > its free untill no reader. > How can this be? We elevate the refcount while dispatching I/O. If we have similar problems with the timer, we need to employ a similar solution. -- error compiling committee.c: too many arguments to function