Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp865171pxb; Fri, 22 Apr 2022 12:59:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwdu7cck4dsSHkJ7PXxxfz8CJ065axqo8SDm0iWtcyiY9XiwUnkf2ZLTaZQ1u6QSioY/fYu X-Received: by 2002:a17:902:b597:b0:158:1aee:1b59 with SMTP id a23-20020a170902b59700b001581aee1b59mr6094540pls.33.1650657546690; Fri, 22 Apr 2022 12:59:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650657546; cv=none; d=google.com; s=arc-20160816; b=BviE91iZFdgAPjvI0xcixsg07IWEc3zntKly7wyudZZ18QGX5heNl5Mx/h+sjsTTiK AT9fm1ZE3AC+s0h6O5giFkOHBnCzTKAmaqepyC5hHxzOxqJahdHlhUFU6qCtnNEk0Uca rfKwvspAjr6NF9fAymkVNUgEVP1UOOPwIAQ1NVwsMxi3RVfQd12X3Mz2k3N2sQPKpafM mXSbNjUc2T382ynrVCAH84Ut7PbURg1J97peaqRulUo+7eykCtS/UJYYdUpJuG3X8KCW zNGnh2r4ksZEkxM6b4Bn2N1gkUHuqNV1+tbSBomoholis+EQN2FvLf+xWCxfTDisJWu2 zgBA== 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=QeRKGkvFLelyG9rKu/uS3aYOVkHHkLrkP5MDRe1pwmg=; b=rbuw2RhtQQDinUTuuDbrVgyCcbJC4KOB5ABpU3PiWqKaezSJWfjbB7zpdbe/5WrU2X R0e0NsE1ztPnF8YxhNYGRDt0rCg6K4AXXT4KuaowxN21nECDErn/d2rDTuODT9VwPBQN gO/KuwDkZokDBSImAKPDJh+mjZKsxrm/VlLRmPn1ePbhLZP1yiRZhayqRIdu9fApj2aw 2T8pCi2kBlwxcJnQq6DM93BT6AWY5fGLF/jocQBDLGzfeUcRuQaJnTd+lvY017Mw+/xG ehHiMdOnIZG/B6ilpQSk2GH4nqhZ/tNH2w6HAiN6wV9vI6i7jIBTzs61b/jvupuq/6Lp vgwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="wiDd3TG/"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id q10-20020a170902edca00b00156abebc92esi3878540plk.544.2022.04.22.12.59.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 12:59:06 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="wiDd3TG/"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 D2D74E8867; Fri, 22 Apr 2022 11:57:26 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229584AbiDUGSk (ORCPT + 99 others); Thu, 21 Apr 2022 02:18:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54322 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1384807AbiDUGRY (ORCPT ); Thu, 21 Apr 2022 02:17:24 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17EA413DE1; Wed, 20 Apr 2022 23:14:33 -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=QeRKGkvFLelyG9rKu/uS3aYOVkHHkLrkP5MDRe1pwmg=; b=wiDd3TG/zR4xbQ1k1sNrzkbJbt d4A3NhDoa+q1NV5tCat1rp+GtM7uVB731PtAaP8cNQSeY7u8opVortfQMfJIvOB98JVz0XVMIl+DR HfKoAjIMyk7VQF41j6kAWBmSP0XMha9IVXyGvi+ATAm+2QIBGTZZFWwYZLOKSxAE4KX8ppuQRcgQ8 6ji+2FJPZjdxcFlUND26o10iUJFvXKJ+HO93+/qtWC44SpitrmFiRe7GhIQHg/9oRGL6nJt7Nr6hP 8dinfSHCnSYtFh7Qm7TFIClOsSUT4SRFSH+gpd+/DBSqZX3qsGZMJ1Muh+SFP1yZKG18U3ZN346LC CRtS0bWA==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nhQ5H-00BeYW-SX; Thu, 21 Apr 2022 06:14:31 +0000 Date: Wed, 20 Apr 2022 23:14:31 -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 05/12] md/raid5: Factor out helper from raid5_make_request() loop Message-ID: References: <20220420195425.34911-1-logang@deltatee.com> <20220420195425.34911-6-logang@deltatee.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220420195425.34911-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.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 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 > + if (unlikely(conf->reshape_progress != MaxSector)) { > + /* spinlock is needed as reshape_progress may be Normal kernel style is to stat with a /* line and to captalize the first word. (also applies for a few other comments). > + if (must_retry) { > + raid5_release_stripe(sh); > + return STRIPE_SCHEDULE_AND_RETRY; The raid5_release_stripe cleanup is duplicated a few times. I think using goto based unwinding would be hepful in this function.