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 A7971C77B7C for ; Fri, 12 May 2023 23:14:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239999AbjELXOS (ORCPT ); Fri, 12 May 2023 19:14:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34594 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230202AbjELXOR (ORCPT ); Fri, 12 May 2023 19:14:17 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D698A6A7C for ; Fri, 12 May 2023 16:14:16 -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=QxRMjCov52ZffTQyQZJ3o2RJ+eLnQIdrSMCcQmGo/UE=; b=HLstAKewH3QDJlXn0xj0yqGbhN 8M21Zu9VE3YANedResZjDDQhmS/uU2+u+6trX6ryUb3k5VdPUlT7eLFDkumxSgEaDcKLSc5TTBjun PoXHZy2H9eNozstKU3Yq7oCIYO50RB8Li9m4/fYK1zEHHFBv5zrazPnfcI0rWmCFwrogiRoqBejPR D++I9Cb+q23pWh3NUzmqvtZF88bMTdjWyiz9OddN4FDtpJ+6oqENG/jjvf6A995p8jfFbrBYn4IOO +MEeHjB9i/TZpJ5B1LmB1iWElKwgGl5VeMmVOeIN7H23+G4rizOVWap/zCk8mXxPAlBLfW88ZAdDz Cb1jWFyA==; Received: from hch by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1pxbxo-00DGR6-0Z; Fri, 12 May 2023 23:14:16 +0000 Date: Fri, 12 May 2023 16:14:16 -0700 From: Christoph Hellwig To: Jens Axboe Cc: Christoph Hellwig , Ming Lei , linux-block@vger.kernel.org, Guangwu Zhang , Yu Kuai Subject: Re: [PATCH] blk-mq: don't queue passthrough request into scheduler Message-ID: References: <20230512150328.192908-1-ming.lei@redhat.com> <70478f95-2852-9bf1-f8f7-630c74641c0f@kernel.dk> <07d74584-1ea3-ef40-f0c7-7bc371fa633e@kernel.dk> 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, May 12, 2023 at 04:12:42PM -0700, Christoph Hellwig wrote: > On Fri, May 12, 2023 at 03:31:39PM -0600, Jens Axboe wrote: > > That's fine for telling error handling, probing etc apart from "normal" > > IO, but it doesn't solve the problem at hand which is assuming that > > anything inserted into the scheduler has a bio. > > I think this is fine. Passthrough requests should never go to the > scheduler, that's not where they blong. Non-passthrough request always > have a bio. .. except for the flushes generated by block/blk-flush.c. Those do not enter the I/O schedule either. That being said saying every request has to have a bio might be a good thing some day. Totally indepent of the fact that schedulers have no business touching passthrough requests.