From nobody Fri May 3 15:42:55 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1578377095; cv=none; d=zohomail.com; s=zohoarc; b=ehvKmOAXs99XESy57Bk0evCCAeDQvdH6NnsQhOEqvUWXXvjKWZXIKuFEQTdXKgn+Gytflla/ZgKPVT0W2tgXMHQrMzFFo8RaVhDcey83RPxOHQ84N+QBEFH5ddh0NcU9q5mSOzCgAPuU3hxOyeXpEps1JjO8Ew/T9MhEBrrDn9w= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1578377095; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=GWuliaEjKstQajoTi33j7jCCjLz+xaQhgkzxpQyoAi8=; b=XipE1/9W2xXLyKHfgsDasQFzeV8IEztTvV4eXFKT3i2qy2WRKt0YnzTpOvjNxwotCNTRj2Iuolrw/JM53kw9nkVd22rKk6LV9KSXxZ41zGCd28PT/Q0fFNrbE7tkD/BuzhBaNJyELK4SOjk0oqxCVozI89eDB7ypsQSI4jOSIy8= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1578377095521677.6148914313153; Mon, 6 Jan 2020 22:04:55 -0800 (PST) Received: from localhost ([::1]:42650 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iohz2-00014j-T1 for importer@patchew.org; Tue, 07 Jan 2020 01:04:52 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:59968) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iohvv-0004BA-41 for qemu-devel@nongnu.org; Tue, 07 Jan 2020 01:01:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iohvt-0005gt-Qw for qemu-devel@nongnu.org; Tue, 07 Jan 2020 01:01:38 -0500 Received: from smtp.h3c.com ([60.191.123.50]:52480 helo=h3cspam02-ex.h3c.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iohvs-0005aL-Fs for qemu-devel@nongnu.org; Tue, 07 Jan 2020 01:01:37 -0500 Received: from DAG2EX07-IDC.srv.huawei-3com.com ([10.8.0.70]) by h3cspam02-ex.h3c.com with ESMTPS id 00760xDd057934 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 7 Jan 2020 14:00:59 +0800 (GMT-8) (envelope-from wang.yongD@h3c.com) Received: from DAG2EX03-BASE.srv.huawei-3com.com (10.8.0.66) by DAG2EX07-IDC.srv.huawei-3com.com (10.8.0.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Tue, 7 Jan 2020 14:01:01 +0800 Received: from DAG2EX03-BASE.srv.huawei-3com.com ([fe80::5d18:e01c:bbbd:c074]) by DAG2EX03-BASE.srv.huawei-3com.com ([fe80::5d18:e01c:bbbd:c074%6]) with mapi id 15.01.1713.004; Tue, 7 Jan 2020 14:01:01 +0800 From: Wangyong To: Stefan Hajnoczi , "pbonzini@redhat.com" , "mark.kanda@oracle.com" , "hch@lst.de" Subject: [PATCH] linux-aio: increasing MAX_EVENTS to a larger hardcoded value Thread-Topic: [PATCH] linux-aio: increasing MAX_EVENTS to a larger hardcoded value Thread-Index: AdXFH2NLa0A87O+DRx2QfJMBGFrevg== Date: Tue, 7 Jan 2020 06:01:01 +0000 Message-ID: Accept-Language: en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.125.108.162] x-sender-location: DAG2 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-DNSRBL: X-MAIL: h3cspam02-ex.h3c.com 00760xDd057934 X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x [fuzzy] X-Received-From: 60.191.123.50 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Changlimin , "qemu-devel@nongnu.org" Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" Since commit 6040aedddb5f474a9c2304b6a432a652d82b3d3c "virtio-blk: make queue size configurable",if the user set the queue size to more than 128 ,it will not take effect. That's because linux aio's maximum outstanding requests at a time is always less than or equal to 128. This patch simply increase MAX_EVENTS to a larger hardcoded value of 1024 as a shortterm fix. Signed-off-by: wangyong --- block/linux-aio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/linux-aio.c b/block/linux-aio.c index c7eca9a256..91204a25a2 100644 --- a/block/linux-aio.c +++ b/block/linux-aio.c @@ -26,7 +26,7 @@ * than this we will get EAGAIN from io_submit which is communicated = to * the guest as an I/O error. */ -#define MAX_EVENTS 128 +#define MAX_EVENTS 1024 struct qemu_laiocb { Coroutine *co; -- 2.12.1.windows.1