Received: by 2002:a05:6a10:144:0:0:0:0 with SMTP id 4csp26685pxw; Thu, 7 Apr 2022 23:28:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzfBpwd/B2hn2sw3/et7gk5ME8XHS5azfHAjFu2YFcBCT+5qBzZ4RAYOY7tq9LDjLzHP4cs X-Received: by 2002:a17:902:e80e:b0:156:9c9d:b401 with SMTP id u14-20020a170902e80e00b001569c9db401mr7587524plg.64.1649399297528; Thu, 07 Apr 2022 23:28:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649399297; cv=none; d=google.com; s=arc-20160816; b=zQHFE+icJ7rFwB9F7forn/7Q7RAbhQNSiSp25hGXe1FvPR1C+imc/yGJySWGC8uYLq SvDFFPmBjARKx7pyvsbWSkr8x40lI2WD9JTkF+J5hBn5HQLS9FFaERaQZ27J8LYxGPf2 uB7SPQa+KksFAJQzBI+dxosGEZwdFljKSgPFbHruXznMH6WSFsfaM0FsKfJlZcVfPwXi 3DJFdUq1IzPtFDvyTTRQgFb2q/TdaUeMD6x5UuA4KPs5u3tKunk7kp2iu1MKwNSELWGV CkvGWMRuIEQoNg74m2oEUqW6dhd+FuRkmZBgVNQ/J/nHuGHiABMKh2netxCeNDH6cljC ug+g== 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=fVIoAxn12PdxzuZvdoPtbIsVBecGZngbVKbs08NDtPg=; b=SVVJVh5EF5D8E0C5gC6FxoE6NgcUFxpDXSOqNJYnYpNorcf3xgmKe57izchOnqRD0m 6cIk/lU/Eit7TAaWXAMRhlBTsqSmd8d8qoDwbA0hgEQTtwn3NwOAzzg/pkqo1A1VJ6Ou Dr66QG7Jg7jPsNbcNYkwdxePPjSxNT2XkYexSZHGeiVrtZbWaoREWtOJ2YoZmHtajDoA DNT7I2iDCH9HIiv7kDZa+oxpGtS2UPkBsHo2WwgMTnrDQ5CAJyesUodpDl1xyHOAUnds abT4CHWtN1Rlce1WRuajsJxHxQRW9TNsMcZs4HOdImu/tbWUCjWEs2i79IsdQowUThmG IlZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=poQey1Jx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id o7-20020a63a807000000b00398b6b8cdf4si453693pgf.224.2022.04.07.23.28.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Apr 2022 23:28:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=poQey1Jx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 76A3B2DA4CD; Thu, 7 Apr 2022 22:59:04 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235027AbiDHGAz (ORCPT + 99 others); Fri, 8 Apr 2022 02:00:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234998AbiDHGAx (ORCPT ); Fri, 8 Apr 2022 02:00:53 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E9F5F2D9A1D; Thu, 7 Apr 2022 22:58:50 -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=fVIoAxn12PdxzuZvdoPtbIsVBecGZngbVKbs08NDtPg=; b=poQey1Jx+AA6sONlhvostPmZ2e XzOspUSmgCagrUwMBP7a6xFEUEb8oEF7sf4EvGy/Vf1Jzan/DkvcgFKQSZ7MzEvOJmxt848R336I/ TyWhEslxxwNeawfl8HXjKgx0gNUgNecToWKIjhG8l0p+OHwNbpoSH7C+kBd5z3c/tyflS82mpFZ4z PYJY5HruVLMJs/EFCsdbOp95b1XtzJKYLRL+HI2RuKTThZbceBrzsbqAGrQh5GTRvonzqxMsS2q0P gRrRcWx8lixG5hLUHDtplweNDKfznk6barELQO7pgLgMre8XNdd55yS9I6VGY09r+ePE3H5GdgbsT jUCnTUZw==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nchdx-00FDbE-FH; Fri, 08 Apr 2022 05:58:49 +0000 Date: Thu, 7 Apr 2022 22:58:49 -0700 From: Christoph Hellwig To: Logan Gunthorpe Cc: linux-kernel@vger.kernel.org, linux-raid@vger.kernel.org, Song Liu , Shaohua Li , Guoqing Jiang , Stephen Bates , Martin Oliveira , David Sloan Subject: Re: [PATCH v1 1/8] md/raid5: Refactor raid5_make_request loop Message-ID: References: <20220407164511.8472-1-logang@deltatee.com> <20220407164511.8472-2-logang@deltatee.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220407164511.8472-2-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.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=no 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 Thu, Apr 07, 2022 at 10:45:04AM -0600, Logan Gunthorpe wrote: > + spin_lock_irq(&conf->device_lock); > + if (mddev->reshape_backwards > + ? logical_sector >= conf->reshape_progress > + : logical_sector < conf->reshape_progress) Normal kernel style is to have the operators at the end of the previous line (and the whole reshape_backwards handlign is ripe for a bunhc of well contained helpers). Otherwise looks good: Reviewed-by: Christoph Hellwig