From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 13A17C433EF for ; Fri, 22 Jul 2022 16:08:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235292AbiGVQII (ORCPT ); Fri, 22 Jul 2022 12:08:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43590 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235110AbiGVQII (ORCPT ); Fri, 22 Jul 2022 12:08:08 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C827BCE12; Fri, 22 Jul 2022 09:08:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=mVumerM2BtpAjoiQzG3zHpPKgPxLzaYLQdBiSPXzBcA=; b=PDQeY5gz5Bxkz8IKg3LmyXVXAH AjJDRc/XfslgoaC1Q83GHu5meqbqg59CZqBsKENHVYDZ+D3FL6OWpjRp9d/JAorSixJFqHqQsbUBB QoY0TXwc12SVg0RTQsThq6jk08psM7DN/l9zZR3MmnfgplAIEQFIhfm81tXLL01fEvQ09zRn4toCA X2/DNFPu4psDhUTRjR27exzdgH5aGZJsqm7yK486AXX0XP/Y1iIoX1cc0g9c+8R++vxVFXUsobQ8g mvrDpc0PuX1Buu0G0Em0ZvFcWzQdAp/dny4bDjxpzCKna7cYkXpJFDjMu8atLdxTGkb+F3v4+xrJN YeyVmLZg==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1oEvC6-007lQI-QJ; Fri, 22 Jul 2022 16:08:02 +0000 Date: Fri, 22 Jul 2022 09:08:02 -0700 From: Christoph Hellwig To: Liu Song Cc: Christoph Hellwig , axboe@kernel.dk, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] blk-mq: avoid potential infinite loop in __blk_mq_alloc_request Message-ID: References: <1658467343-55843-1-git-send-email-liusong@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org On Fri, Jul 22, 2022 at 04:15:49PM +0800, Liu Song wrote: > It is a reasonable approach to prevent abnormal alloc from going down, > but this is a very rare exception after all, and above modification is > checked > every alloc request, which seems to be a bit excessive overhead. Every allocation of a passthrough requests. Which isn't really the normal fast path.