From nobody Sat Apr 20 10:15:50 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; dkim=fail; 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; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1578994997; cv=none; d=zohomail.com; s=zohoarc; b=iCTuK2915VOvPtloCn7JXlU3und3gpbtgq0QZxqxYwXJcvaVl8wZTzp/zv7BJNoEsZnUUW452swHwxNUYBwESShap8IM3QWLQwnhsq+saD1K2FaCkuu7DF2d4pXRKctZADCb6Zq1lNg8VouGEKB8ahd8zPjPFLk+2EXto3PYNf4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1578994997; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=Bim/vjqkhwVx1YNAeaFTvQoQEI+0/v595gvGn1+RKpg=; b=W9Mtf/3t3NssuOV/3l7hYL3PiPqtneE9DqwXaZhHOJ/OJIqxQ8t24ygkLTG90qkKM2HcqSQJccL1qpey9A22/4gIDA6W/720oFF74nYAlq2p8C1DslzRCUHxwzwmVA/nF1jaaOdgr0ZPcf/LzKYW1/66/16Y25USkVZfAsz4CJA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; 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; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1578994997894109.03325558033157; Tue, 14 Jan 2020 01:43:17 -0800 (PST) Received: from localhost ([::1]:35400 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1irIjE-0001PH-Ig for importer@patchew.org; Tue, 14 Jan 2020 04:43:16 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:58745) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1irIXV-0002s7-QC for qemu-devel@nongnu.org; Tue, 14 Jan 2020 04:31:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1irIXS-0007S5-4U for qemu-devel@nongnu.org; Tue, 14 Jan 2020 04:31:09 -0500 Received: from us-smtp-1.mimecast.com ([207.211.31.81]:39105 helo=us-smtp-delivery-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1irIXS-0007Rt-1Q for qemu-devel@nongnu.org; Tue, 14 Jan 2020 04:31:06 -0500 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-365-GcMKfJgOMBGk4M79E1WwZw-1; Tue, 14 Jan 2020 04:31:01 -0500 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 39F07107ACCA; Tue, 14 Jan 2020 09:31:00 +0000 (UTC) Received: from localhost (unknown [10.36.118.18]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8420F8068E; Tue, 14 Jan 2020 09:30:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1578994265; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Bim/vjqkhwVx1YNAeaFTvQoQEI+0/v595gvGn1+RKpg=; b=bRjwBzqdjZ3wX59AmkzXBG+qhV9TGzWP0hrNckJ5Ea+Qpa/xSx+XlWmSKoXX0i5zYJZGAx IfOWtescGbF8lvgoUDPje68CvqCJCt7xVSYQU9Hu0+QZXTkKCVHZpQNSYo41aOnufIyg/l cb4Xh42/yWjLHpEFHzlYzM+/0L7K/xA= From: Stefan Hajnoczi To: qemu-devel@nongnu.org Subject: [PULL 1/1] linux-aio: increasing MAX_EVENTS to a larger hardcoded value Date: Tue, 14 Jan 2020 09:30:52 +0000 Message-Id: <20200114093052.117848-2-stefanha@redhat.com> In-Reply-To: <20200114093052.117848-1-stefanha@redhat.com> References: <20200114093052.117848-1-stefanha@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-MC-Unique: GcMKfJgOMBGk4M79E1WwZw-1 X-Mimecast-Spam-Score: 0 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 207.211.31.81 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: Kevin Wolf , Peter Maydell , qemu-block@nongnu.org, Max Reitz , Stefan Hajnoczi , Wangyong Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" From: Wangyong 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 Message-id: faa5781afd354a96a0be152b288f636f@h3c.com Message-Id: Signed-off-by: Stefan Hajnoczi --- 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 =20 struct qemu_laiocb { Coroutine *co; --=20 2.24.1