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 E2CE5C433F5 for ; Thu, 21 Apr 2022 06:15:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1384614AbiDUGRv (ORCPT ); Thu, 21 Apr 2022 02:17:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1384888AbiDUGRs (ORCPT ); Thu, 21 Apr 2022 02:17:48 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B8F9760FA; Wed, 20 Apr 2022 23:15:00 -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=6wrGU8o71vWtNnk/kofBHxfJB1Q7EczXs0qoooO1IXc=; b=R6vTLyps/2RQ8i8deon6o5x28/ Nmkg7WFrw37n9SlCLaWOeIDDmw6E1+C4K3RmmkitiEpn+xwJG/qpTOvCtzxDjQpE6on9WTzdmJc5L HMbaTy6Og2hq4F6wWGYEffCqCgzKwPgPS/nXS0ik9rDleUFR9ahHXMi8bC55PRrkSelxUXlNvh8Yf oX+yZ/lFv26B6e0zE2xtqCAWPRV0sMgN91hMEuxVFbQ0zeToW8DFX7B4+siLAThMDbhbKaNElpkO2 WOQLRuvgTk5Kls0bv02Ovqtc+/L0PHdX7RONo2YNBI4njsw+USkXwqxZATbizv6ZS7kZWZh6igTGY Wut5pWhg==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nhQ5k-00BebM-6L; Thu, 21 Apr 2022 06:15:00 +0000 Date: Wed, 20 Apr 2022 23:15:00 -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 v2 06/12] md/raid5: Drop the do_prepare flag in raid5_make_request() Message-ID: References: <20220420195425.34911-1-logang@deltatee.com> <20220420195425.34911-7-logang@deltatee.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220420195425.34911-7-logang@deltatee.com> 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-raid@vger.kernel.org On Wed, Apr 20, 2022 at 01:54:19PM -0600, Logan Gunthorpe wrote: > prepare_to_wait() can be reasonably called after schedule instead of > setting a flag and preparing in the next loop iteration. > > This means that prepare_to_wait() will be called before > read_seqcount_begin(), but there shouldn't be any reason that > the order matters here. On the first iteration of the loop > prepare_to_wait() is already called first. Looks good: Reviewed-by: Christoph Hellwig