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 CC236C77B72 for ; Mon, 17 Apr 2023 06:39:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229649AbjDQGje (ORCPT ); Mon, 17 Apr 2023 02:39:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229892AbjDQGje (ORCPT ); Mon, 17 Apr 2023 02:39:34 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 47E7535A6 for ; Sun, 16 Apr 2023 23:39:33 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id E8BC067373; Mon, 17 Apr 2023 08:39:29 +0200 (CEST) Date: Mon, 17 Apr 2023 08:39:29 +0200 From: Christoph Hellwig To: Damien Le Moal Cc: Christoph Hellwig , Jens Axboe , Bart Van Assche , linux-block@vger.kernel.org Subject: Re: [PATCH 5/7] blk-mq: defer to the normal submission path for post-flush requests Message-ID: <20230417063929.GA3192@lst.de> References: <20230416200930.29542-1-hch@lst.de> <20230416200930.29542-6-hch@lst.de> <4689ec07-8da7-eecd-5980-e89fe255af6a@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4689ec07-8da7-eecd-5980-e89fe255af6a@kernel.org> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org On Mon, Apr 17, 2023 at 03:36:54PM +0900, Damien Le Moal wrote: > > + case REQ_FSEQ_DATA | REQ_FSEQ_POSTFLUSH: > > + /* > > + * Initialize the flush fields and completion handler to trigger > > + * the post flush, and then just pass the command on. > > + */ > > + blk_rq_init_flush(rq); > > + rq->flush.seq |= REQ_FSEQ_PREFLUSH; > > Shouldn't this be REQ_FSEQ_POSTFLUSH ? Yes. My fault for optimizing away the complicated assignment in the last minute..