Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp4560284rwb; Mon, 31 Jul 2023 08:38:53 -0700 (PDT) X-Google-Smtp-Source: APBJJlFJyg8F5r/TsejvKfLarJ+ZOmbT6Q6HRVJMppcUqEbFg8Mg/bS2gQLVAIu2p9Igf8vnuLok X-Received: by 2002:a05:6512:e84:b0:4fb:5dd5:715c with SMTP id bi4-20020a0565120e8400b004fb5dd5715cmr163723lfb.4.1690817933338; Mon, 31 Jul 2023 08:38:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690817933; cv=none; d=google.com; s=arc-20160816; b=FRH3NS8rslDc0yvCuO0APOJSpMaGd7BfANPhc8/HsfLgfGz1oHc6HgHTa+CdMIpjL7 naCTcpec5C5DeTfKETPuZKgXv2iE+b+1QCja++E6VbWq9YdXdGhBxWLCbBCaEawP5Ura Sbr34IpOXyOdkmTM3HM5EYKrUV19c5fNHiMfOfMSYTWSfqLWBPBYcGzRCYsd2Ws+Untu 2yYg1xcl0vEiAA7f++yUYngiVWjfjx0Q26x58XaA5CK49BgFgH1BwgVEyefON+Gl8kS5 NSjbVzZCLdlL2v5fjfS6kg0V6jaWU7VHlgoCZClu0Hd0BHuc9bkd56AsfnF/R6jsxBcy XDfA== 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=+/Dav/NqcU/cZeCRg4opkqW2nczUfmVngYobxg8WNS4=; fh=C88XBTw9vZ0CnNmaburAsbkpHOKW7gTynP9DJWLVwR8=; b=dm9UDJ1Lb4RQJkSrrx4z7PdfaC9gJPWru/RREIpxUJHB+HiKBvSlsFe1ik5eeIkAKx LnVFC4P+D9GfVGYDvjt2QOL1gvOQFsKRCgBB0JTZaoMuQM670Zs/KUUrsPcYWRLPCBJ8 lve1/tMFckQzOPq2/9hPrkyrND8W/oZR8074resOexTIYugD3V9Es6baIxk6mB7tbSQr DLzZRS6bNOauabj6iHiMmp6FCxnvJ+HAQBbNQUJTuoMZKk/JJDJ093Ddgrd625QLrW73 7zED4Xrs2sqiFhP0CTbQooxK1jNjqWnUAYQZdkc7BsMfE5rV8OfjsVSoqm9xC+inQ6OS zHqw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gj16-20020a170906e11000b0098295eed929si7670625ejb.998.2023.07.31.08.38.28; Mon, 31 Jul 2023 08:38:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229832AbjGaOJk (ORCPT + 99 others); Mon, 31 Jul 2023 10:09:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232868AbjGaOJV (ORCPT ); Mon, 31 Jul 2023 10:09:21 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB4341724; Mon, 31 Jul 2023 07:09:14 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id 0697267373; Mon, 31 Jul 2023 16:09:11 +0200 (CEST) Date: Mon, 31 Jul 2023 16:09:10 +0200 From: Christoph Hellwig To: Chengming Zhou Cc: Christoph Hellwig , hare@suse.de, axboe@kernel.dk, ming.lei@redhat.com, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, zhouchengming@bytedance.com Subject: Re: [PATCH v2 1/4] blk-flush: flush_rq should inherit first_rq's cmd_flags Message-ID: <20230731140910.GA6835@lst.de> References: <20230725130102.3030032-1-chengming.zhou@linux.dev> <20230725130102.3030032-2-chengming.zhou@linux.dev> <20230731060957.GA30409@lst.de> <0ee17228-4938-6ab7-3fc4-f83a81cbed8f@linux.dev> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0ee17228-4938-6ab7-3fc4-f83a81cbed8f@linux.dev> User-Agent: Mutt/1.5.17 (2007-11-01) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 31, 2023 at 10:02:39PM +0800, Chengming Zhou wrote: > The commit 84fca1b0c461 ("block: pass failfast and driver-specific flags to > flush requests") says: > If flush requests are being sent to the device we need to inherit the > failfast and driver-specific flags, too, otherwise I/O will fail. > > 1) REQ_FAILFAST_MASK: agree, shouldn't set to the flush_rq I think? > 2) REQ_DRV: I don't get why this flag not set would cause I/O fail? I don't think it would fail I/O by it's own, but it will cause the nvme driver to not do the correct handling of an error when a flush is set to multipath setups.