Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp318457rdf; Fri, 3 Nov 2023 01:16:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFHKMVTj80meNZwntqrvWpGXtkY4xvRqCw/2pnwk1YpwKuQyH10bgOy/y6O1pDe4mTxx+GY X-Received: by 2002:a05:6a21:998a:b0:15e:ab6:6e24 with SMTP id ve10-20020a056a21998a00b0015e0ab66e24mr26449145pzb.27.1698999366847; Fri, 03 Nov 2023 01:16:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698999366; cv=none; d=google.com; s=arc-20160816; b=g4gcCnILmkI9aY4azhF4gQUQLRWcXv/YwTM+j533acpSZsxvC9J242Hztg11q8WasA Sr1E/44X8LiYsEqftgU2bCHzZR4TwE2AkRHgdmtl1AopE8IEYD/+4XrlKgcRbBeAYIi0 Qq5iSZuBm2xermhBFHgdgyrbCDCEz71hubfwePh6PtCvJpNOLLIytjFYkTZpxVXdt88/ 9pMLMObC5AupeXovXydGo/gmwPC5wfU2i8PYAffqiJ2XL8jNqAUTahqoLgVheQzvhg/1 AROvyBGSj9/AuzVd1Xs2KNJfZyf5F0sakP7BmGx+MFE4wERbzTGlwV/ekqi3Z2w7lTDo HErg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=nc5z+fIoiWRGbEoDiN5kVtNuvPICZUxfahsCp834BCE=; fh=BGJUZ2oUPvyss++BEAIyizcaTeufeSP6zw7v2jIL8b8=; b=alEkKbLC7PHbwuzyVIy60QDsp0LPUQEhT2g39pCsOxxv0YKmSR+Pyop0y93/vVfQgv ffyrvbzSVNJ+3SzL3ipFyKRn0sCph/Kav2Bt9Xg4aw50oGW9UDKbZ5jHT5uronSO8H9n aMUDqy2JxE6YZUoRYdynYM38tWgEFGUaaz9lG+tqfbBbsxfFULoC9M/TfMQQA5TIX+vZ /E19GZFz5XOMjWlD+Fv5ymX8tOXcrloSfCSXordYYfkeV45zUSAU7dZ6D4CwUfhg7smB i4kf8GMt3aKOE+8upmZt6ISxD9BFfvksro3YoEaN3oEtkBslzHXYtWA0/rphA17h3HYd NQzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=spe+jzZx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id cf8-20020a056a02084800b005859c255ce9si1202425pgb.861.2023.11.03.01.16.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Nov 2023 01:16:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=spe+jzZx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 99F2E825F1E4; Fri, 3 Nov 2023 01:15:58 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235601AbjKCIPq (ORCPT + 99 others); Fri, 3 Nov 2023 04:15:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235380AbjKCIPn (ORCPT ); Fri, 3 Nov 2023 04:15:43 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 67694112; Fri, 3 Nov 2023 01:15:37 -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=nc5z+fIoiWRGbEoDiN5kVtNuvPICZUxfahsCp834BCE=; b=spe+jzZxRfB+62sO4nxQ7USAMJ KB3DzJHdXAqWy0Bqmlc10+CfnEqeb5o4VoFldf6wjTXKFQEas6t0+lM1EN+JdM/lPR6YmyN3J2Xvw YzMqIXLn7bODzLtd6179CZtAu1NZxGugvde5j6oUbCE35B0iyaLE6eOtySF7vg62m1xA1XKddUBFO I4sR+AprZH89LFNNtDjnd4Rv6HqPNShyL8vy7FMXwBX2tggzjMZanz58uK+qkGrnJ76lwOp8L+Hgm NQPQS4GGSpOBlu2oC8GA4FF30J0ujRlZxQSA5ZvB/174tj3k7BQ/vHZ7elTMnlg3LXNLi855HZSB8 oYVKlt3Q==; Received: from hch by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1qypL3-00AxfM-33; Fri, 03 Nov 2023 08:15:33 +0000 Date: Fri, 3 Nov 2023 01:15:33 -0700 From: Christoph Hellwig To: Ed Tsai =?utf-8?B?KOiUoeWul+i7kik=?= Cc: "matthias.bgg@gmail.com" , "angelogioacchino.delregno@collabora.com" , "axboe@kernel.dk" , Will Shiu =?utf-8?B?KOioseaBreeRnCk=?= , Peter Wang =?utf-8?B?KOeOi+S/oeWPiyk=?= , "linux-block@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Alice Chao =?utf-8?B?KOi2meePruWdhyk=?= , "linux-mediatek@lists.infradead.org" , wsd_upstream , Casper Li =?utf-8?B?KOadjuS4reamrik=?= , Chun-Hung Wu =?utf-8?B?KOW3q+mnv+Wujyk=?= , Powen Kao =?utf-8?B?KOmrmOS8r+aWhyk=?= , Naomi Chu =?utf-8?B?KOacseipoOeUsCk=?= , "linux-arm-kernel@lists.infradead.org" , Stanley Chu =?utf-8?B?KOacseWOn+mZnik=?= Subject: Re: [PATCH 1/1] block: Check the queue limit before bio submitting Message-ID: References: <20231025092255.27930-1-ed.tsai@mediatek.com> <64db8f5406571c2f89b70f852eb411320201abe6.camel@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <64db8f5406571c2f89b70f852eb411320201abe6.camel@mediatek.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Fri, 03 Nov 2023 01:15:58 -0700 (PDT) You need to look into the splitting code to see why the splits are suboptimal for your device. We can't limit the upper bio size as we have code relying on it not having arbitrary limits.