Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp511215imn; Thu, 28 Jul 2022 07:30:04 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vsruAyRtZcRoRVQNIWrZdtaTkdCuFYDegTYSLJ2CDZf0+8wtSfTTemUP5Aav0tbmp0HmIN X-Received: by 2002:a17:902:8bcb:b0:16d:51ad:f6f7 with SMTP id r11-20020a1709028bcb00b0016d51adf6f7mr24862793plo.92.1659018603772; Thu, 28 Jul 2022 07:30:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659018603; cv=none; d=google.com; s=arc-20160816; b=ZD5BgvZYB60o7GzGgpxgI8l8WKVD3umpMt5zCAqWICFgY/QDdlJGK1iT5yJRKEWpbY JBA/jgx32mlp4mJyBPXn58Dls40nrhRwYbSKecLivH9mknDeDOlDEFJIZtAQ/3rn2lXx AMUKxdGQoADoEuibLmEbfXwUPiJ4mTieMz/4lwYykUHybVBa7qNnqoIJ3WZW0PdsDnsy QI1p3/ntw9dZIINwkRlbxjJ8el05GMbsl7ad64R0U1VcYPkF1RhXIbq/ji5wW/SuHa21 7BqAKgTDpCRAyG8Y+m9ExfOyP/CvfGDtFz7s7QA9sKXxM7H/0rWHpa/94SmhLvJlmjn/ qSXw== 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=nFOoJ8nga1EDaqCwMEzbmkgTMo/1ebWCPdGaO/dEKf0=; b=LNHNbO9xY/Pmt24wTIDKo2QjrN+HXBT7e3cdd9kAux6XYRGiXdqfZVDJrLzR/X9hIl tqWKmeDf22vEYNd9+KaPRStRPGiw0TG++D7FCZ8y8+R42bMGkpi2kOJkUShIFmSXHf27 sNz0/EvOxkkZzF69R+THgG1Sq32W6TkQMmSSsxxi1OTa5sG2y11/01ICGviIOc/55xP0 g5gFWGj4f2b+TjP+5ea3aDdcPgfmixxrYb/8vGVLWraU6zIpdP48J8ERPj0pPdu+WTJC KDOg6TJ1xXLmtE3edBlrbKB8orqO+Kqwp1ioJPnklo6w71luXjcvaBCy23UEtJx6XUc5 KqSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=SATzZfMw; 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 m9-20020a17090a3f8900b001efde438e00si5111561pjc.138.2022.07.28.07.29.48; Thu, 28 Jul 2022 07:30:03 -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; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=SATzZfMw; 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 S231214AbiG1OP5 (ORCPT + 99 others); Thu, 28 Jul 2022 10:15:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229484AbiG1OPx (ORCPT ); Thu, 28 Jul 2022 10:15:53 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 65A3811A29; Thu, 28 Jul 2022 07:15:52 -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=nFOoJ8nga1EDaqCwMEzbmkgTMo/1ebWCPdGaO/dEKf0=; b=SATzZfMwrRk0rCbGH7sFPKN6yh HopjXb7EzJu/QvddFaVznHFLYLcaMODru4cx1bZAsJNr46xIuO20ERe12oBCZd18/0nh6KQvHgj0a /LswS4Uq5R96y3Wog85EeSkHhJvoAxcv6SLDeTuee4nTpZio+XHn85C/nrCTAlkGTITImCrZxpLSY VEHVxFH6fIZ+KQP8Fi4weztiCYYryST2O8SDQNn6R1TL6UjCkiwEs+Rfj5AzAhPDascYQrnXaKdWb vGad+nZUIOowGuf4fz5JHzohIFdNSE3AvFCS51+IXbtpHq05ApbDOA2K2Uh2YchIsHAwXiWfBsHzy A8SvStvw==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1oH4Ip-00A30r-TM; Thu, 28 Jul 2022 14:15:51 +0000 Date: Thu, 28 Jul 2022 07:15:51 -0700 From: Christoph Hellwig To: Logan Gunthorpe Cc: linux-kernel@vger.kernel.org, linux-raid@vger.kernel.org, Song Liu , Christoph Hellwig , Guoqing Jiang , Stephen Bates , Martin Oliveira , David Sloan Subject: Re: [PATCH 5/5] md/raid5: Ensure batch_last is released before sleeping for quiesce Message-ID: References: <20220727210600.120221-1-logang@deltatee.com> <20220727210600.120221-6-logang@deltatee.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220727210600.120221-6-logang@deltatee.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=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_NONE 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 Wed, Jul 27, 2022 at 03:06:00PM -0600, Logan Gunthorpe wrote: > +static struct stripe_head *__raid5_get_active_stripe(struct r5conf *conf, > + struct stripe_request_ctx *ctx, sector_t sector, > + bool previous, bool noblock, bool noquiesce) Passing three different bool arguments right after another is a really confusing calling convention, at some point this should become a set of flags. I'd also drop the __raid5_get_active_stripe vs raid5_get_active_stripe distinction.