Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3500811pxj; Mon, 24 May 2021 08:08:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzWf118SOC+NMOJkgIuAD0eYvRtZ87QsP+SZTxngC4mhTOQoq1A6jv51BYsmBzhA9CvHvOx X-Received: by 2002:aa7:cc9a:: with SMTP id p26mr26106642edt.74.1621868885947; Mon, 24 May 2021 08:08:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621868885; cv=none; d=google.com; s=arc-20160816; b=IfiDITMqjFy6vlwXu2lVE5gXfqY+I5QFJg7PxNnxN/Sti9X+G5yJ96D5G3Q4o3FiOg KW2nhk2memRraJLWCPbwYtllMJgzSJWkruXGGto9srALT4A+tONCK6FVURO1ueuujtXY xRtdIJsgGwx2z4IoXnJEIjq9QStiWt+qQiZ2ZJ8eCOJ9G16tqB3cnXtDwkuNiDrjANL7 OHWj54ahc/0Xdt2CZGFe7LNzBbmetxQilTsRDaxgiFknG/XSEtqMdr5b4tcIlYDYbxMA 3v137fZpM/5gOIj4jglyY+9CGqRDnC8OkRWlNq9+dnCavPrQH7DAH3M6EDnhn5eBAmOJ 5CdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=pJqWD6drj1eXpxyX/280XRp6CsMKn54DAYZAlDgy8Do=; b=fbjqOwncC/ocpHpZPlpb1oQOJsi7FCf3H/Sqqwgi4fRm1B5hTtML5s0g2JINQ3DuLo SyYwbEgUADmUJ977z6BeYStiNu6YX9AFPVD87YL4jLLB1pCODx1ScdWf883Ph9F8rUrj Gb2wY1F37u5PGI6J+WwlIVJgHcCEl/Da4ewZPNtbMXPXyYdYypbD+CzDPXuvG25aawsy pxDCI3CAqzWZK26lUeRQAgUmL950KbCahcTB4iGNCZFXePt/+D+daJBdKA+tLaTA9NQt zs+Wtd/WKrhCABl08IicPpzPKjER0QqiwZYM9N+u6CuG+VxTgRooOsacTw2n2uArgvCy QbFw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s14si12877186edd.602.2021.05.24.08.07.42; Mon, 24 May 2021 08:08:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234486AbhEXPHv (ORCPT + 99 others); Mon, 24 May 2021 11:07:51 -0400 Received: from verein.lst.de ([213.95.11.211]:54895 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233846AbhEXPA6 (ORCPT ); Mon, 24 May 2021 11:00:58 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 5699267373; Mon, 24 May 2021 16:59:28 +0200 (CEST) Date: Mon, 24 May 2021 16:59:28 +0200 From: Christoph Hellwig To: Stefan Hajnoczi Cc: virtualization@lists.linux-foundation.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Christoph Hellwig , Jason Wang , Paolo Bonzini , Jens Axboe , slp@redhat.com, sgarzare@redhat.com, "Michael S. Tsirkin" Subject: Re: [PATCH 3/3] virtio_blk: implement blk_mq_ops->poll() Message-ID: <20210524145928.GA3873@lst.de> References: <20210520141305.355961-1-stefanha@redhat.com> <20210520141305.355961-4-stefanha@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210520141305.355961-4-stefanha@redhat.com> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 20, 2021 at 03:13:05PM +0100, Stefan Hajnoczi wrote: > Possible drawbacks of this approach: > > - Hardware virtio_blk implementations may find virtqueue_disable_cb() > expensive since it requires DMA. If such devices become popular then > the virtio_blk driver could use a similar approach to NVMe when > VIRTIO_F_ACCESS_PLATFORM is detected in the future. > > - If a blk_poll() thread is descheduled it not only hurts polling > performance but also delays completion of non-REQ_HIPRI requests on > that virtqueue since vq notifications are disabled. Yes, I think this is a dangerous configuration. What argument exists again just using dedicated poll queues?