Received: from eggs.gnu.org ([2001:4830:134:3::10]:57390) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1acOe7-0003CZ-UQ for qemu-devel@nongnu.org; Sat, 05 Mar 2016 21:42:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1acOe4-0003ul-O8 for qemu-devel@nongnu.org; Sat, 05 Mar 2016 21:42:15 -0500 Received: from mail-ig0-x22a.google.com ([2607:f8b0:4001:c05::22a]:37989) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1acOe4-0003ua-Gf for qemu-devel@nongnu.org; Sat, 05 Mar 2016 21:42:12 -0500 Received: by mail-ig0-x22a.google.com with SMTP id qc2so2164965igb.1 for ; Sat, 05 Mar 2016 18:42:12 -0800 (PST) Content-Type: multipart/alternative; boundary="Apple-Mail=_565F6187-C0C0-44DD-B0A3-1567D247CAB6" Mime-Version: 1.0 (Mac OS X Mail 9.2 \(3112\)) From: "Huaicheng Li (coperd)" In-Reply-To: <56D6033E.2070402@redhat.com> Date: Sat, 5 Mar 2016 20:42:10 -0600 Message-Id: References: <56D6033E.2070402@redhat.com> Subject: Re: [Qemu-devel] qemu AIO worker threads change causes Guest OS hangup List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: qemu-devel@nongnu.org, stefanha@redhat.com --Apple-Mail=_565F6187-C0C0-44DD-B0A3-1567D247CAB6 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > On Mar 1, 2016, at 3:01 PM, Paolo Bonzini wrote: >=20 > This is done > because the worker threads only care about the queued request list, = not > about active or completed requests. Do you think it would be useful to add an API for inserting one request = back=20 to the queued list? For example, In case of request failure, we can = insert it=20 back to the list for re-handling according to some rule before returning = it directly=20 to guest os.=20 Best, Huaicheng --Apple-Mail=_565F6187-C0C0-44DD-B0A3-1567D247CAB6 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii
On Mar 1, 2016, at 3:01 PM, Paolo Bonzini <pbonzini@redhat.com>= wrote:

This is done
because the worker threads only care = about the queued request list, not
about active or completed = requests.

Do= you think it would be useful to add an API for inserting one request = back 
to the queued list? For example, In case = of request failure, we can insert it 
back to = the list for re-handling according to some rule before returning it = directly 
to guest os. 

Best,
Huaicheng

= --Apple-Mail=_565F6187-C0C0-44DD-B0A3-1567D247CAB6--