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 BE83CC433EF for ; Thu, 21 Apr 2022 06:15:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229619AbiDUGSl (ORCPT ); Thu, 21 Apr 2022 02:18:41 -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 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.