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 BE67CC433EF for ; Fri, 8 Apr 2022 05:58:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235022AbiDHGAz (ORCPT ); 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 Precedence: bulk List-ID: X-Mailing-List: linux-raid@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