Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp910749pxb; Fri, 22 Apr 2022 14:05:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxrOmZTXgxW9dyarMo8GnC97T4h98c9tBS7n/5pbdhEY/ybnFtFr0F8nBJPU5x8RSQNiQSU X-Received: by 2002:a63:5b53:0:b0:39c:c6b8:d53b with SMTP id l19-20020a635b53000000b0039cc6b8d53bmr5394255pgm.166.1650661538955; Fri, 22 Apr 2022 14:05:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650661538; cv=none; d=google.com; s=arc-20160816; b=IehCBEBWtSgMDkBncpI0bYiQfeYHQH5r2eVecEYOZLYqT6vBCbzoBktTLEiYs2KLtE YcdqA3/iG0KvZP4v0LTI18CMk5BuXymHXjHSge+CfZwqBtVvfShMDf7E3s8lpdx+1ijm 4KQF+I3QBunskyJWE/9pcv1/QkU2+KNsYbQ7No+VhqjV70t7H/CAYEFpmlxwZ9k7VIJy xTQi8d/+2SFKFG8YpeDeyZJkSDQNisBKd40xkKxd6UzsNYv3VZlzS++3SJFATePfZVkc YWmkuT0MjomeJOfU2L/yPGbLiQfW4iMDPljPq1xsluQlWDO/fj79P7/BQj0hq/zqdc3q J0TQ== 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=dbk1o55nyJG0iTgcHKzQ8jtanwMp7QlgPddqCfzuaRg=; b=eXuMzxYY2S6g1dIA5wtsmAth6zKAyI1q34XCNHnrduHbCAIX+3BkI9MP0gU9un9hXl TTnRyPHSbmb38P1oLctX3+BV8uRJN8QPKCLTy32A4DutZsytoNw9Q51DC3OfqyybtpU+ i/st/T3lH8MzmweCB/f4QwggSlGRIIujyaS7VyNG8kzKEajtGAzMiegme64nD8tTr87g 7HqiOd5DZCrpkLVCSe3mMZTD7PX1gsvsgXWEdm/244cLLNElotlJbsK1yDB+FS6chzK4 ZrKGwhfxFnHD5O6z9uMl+y4+JE9TJL418lmJpRrH9lR6EK27oX20Jm2riUfC1QDTKK3I LPvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=vk9KsWte; 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 l13-20020a056a0016cd00b0050a8f87bf96si9575040pfc.293.2022.04.22.14.05.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 14:05:38 -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=vk9KsWte; 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 E9B3232936E; Fri, 22 Apr 2022 13:02:34 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1384656AbiDUGLM (ORCPT + 99 others); Thu, 21 Apr 2022 02:11:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1384641AbiDUGLK (ORCPT ); Thu, 21 Apr 2022 02:11:10 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16046E0BE; Wed, 20 Apr 2022 23:08:22 -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=dbk1o55nyJG0iTgcHKzQ8jtanwMp7QlgPddqCfzuaRg=; b=vk9KsWteso4ZAUPkv0ulL0D2HB lIMgMwnQ1ff36xfrTtJPqcf2K22f8xeUgKb0dDyJFm5eD/nhYJCQvISyj8o+CY/4IxugYXPeOaOiX JWXhNDgF3qfT0wiJM8i3MMXtg4OWhe4XKUqqr7C9Qrl1lGwvDGTZ7HgRyoj+h92WMdMaYLN5huxUI ydIFKeAeKbVT8CFvV6y1r4DbvXpcDGuCiRH9k/ZtJET0GWuoYL9nlNHBWh5G7rYDULi2dy+DDhoR5 VtlTCJui1Ojq+5IbrDYZ1HTSHbAEOnjJ6NQQEP1cLpqV2ZWyz2uaZ5VVTUGEARiJKJsTT00kq3dVf QN6rgD7A==; Received: from hch by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nhPzJ-00BdNE-Gx; Thu, 21 Apr 2022 06:08:21 +0000 Date: Wed, 20 Apr 2022 23:08:21 -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 02/12] md/raid5: Refactor raid5_make_request loop Message-ID: References: <20220420195425.34911-1-logang@deltatee.com> <20220420195425.34911-3-logang@deltatee.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220420195425.34911-3-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 On Wed, Apr 20, 2022 at 01:54:15PM -0600, Logan Gunthorpe wrote: > Break immediately if raid5_get_active_stripe() returns NULL and deindent > the rest of the loop. Annotate this check with an unlikely(). > > This makes the code easier to read and reduces the indentation level. > > No functional changes intended. Looks good: Reviewed-by: Christoph Hellwig