Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp348196iob; Thu, 28 Apr 2022 04:00:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwx8bcQBi4mQIPwxzuwLIPP5ojBJomYUPHL9sq7bJ7MNi0g1KeMP9Sb0DEyOcpqBE3Sx4eW X-Received: by 2002:a17:907:7f0b:b0:6f3:5ed1:d296 with SMTP id qf11-20020a1709077f0b00b006f35ed1d296mr28982462ejc.177.1651143658767; Thu, 28 Apr 2022 04:00:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651143658; cv=none; d=google.com; s=arc-20160816; b=nz6rx1D/RYaGDYkMevhGS9CcwL5Oj0b3bY+Ae3ZUDy03ghJtwKlqgKMpazZC4JTRB7 FmwseoMS3kKOoXcOkmNkifTEiXKJbI9ShUzA+sSPZVJvb2WiXAZ1eeifGHOKx7wAA2OK 5vSXBeNL0KKLpzGCb32x6TtmxNhK1re/2g6t7uWIhNhLh0M6IEUcr4YNl9wrg3ZYDH1j OAYRnT5wEoeQR1X7nL8mWZA6yCYglnp9GT4MQFubgYOp9Esdy1RaRg6kjOSTFZPr4cAU xHp6wj1Poy5rMsI+0vsGb/9hLgztRfF5K6Aq3/BHKlUqsj42YUP7NBM7RgPbeeOtFZAb m4WA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:date:message-id:from:references:cc:to :dkim-signature:subject; bh=4Xwu3P+Vnz59GR97kf/BPusICnrHsO9eK/MxwfaNVe8=; b=Z6C54FgWv8b/1uvVz0xUB0T/ZPYaoUOnpF4pIHGHCWgi5oKlBISJ7TqdF4m0a06+SM V38+fqU55ptT2Jd7P6/6UiW+IJVvr6aFF3l/LCZYKh3KSKSxJ0KfePlSf5zTWW2lQI/K GDHViu3d/RqQGs4ppGc0hNku3tx3x1rqXWh5c22qc20wdbj8okLEx6e1UE/eaOa2oQDB MwaT0rmuGRzv8feu6alkYWYZUfZlIdvaP2PPT15pjceaUjd/ORyTZTyD3S5f61yDLsMm K0Xpp2g8zRtKm3nx9KvM+knSGDekqka71opJvrZaHDWtGjBWEOxs7ctohyEXglfQQVjM +F8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=GxJBrNDC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hq36-20020a1709073f2400b006df76385dfasi4399646ejc.666.2022.04.28.04.00.33; Thu, 28 Apr 2022 04:00:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=GxJBrNDC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234091AbiD1BUN (ORCPT + 99 others); Wed, 27 Apr 2022 21:20:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230263AbiD1BUM (ORCPT ); Wed, 27 Apr 2022 21:20:12 -0400 Received: from out2.migadu.com (out2.migadu.com [IPv6:2001:41d0:2:aacc::]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B88464BE1; Wed, 27 Apr 2022 18:16:59 -0700 (PDT) Subject: Re: [PATCH v2 02/12] md/raid5: Refactor raid5_make_request loop DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1651108617; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=4Xwu3P+Vnz59GR97kf/BPusICnrHsO9eK/MxwfaNVe8=; b=GxJBrNDCCEotL1plDVrJvTIiBUPGVoKGhfZ46HVPAbiZ8fz+ck1dSOLokSaYis/nMVAMIq Bz0wmYcnBP2cKhl/e7yfxxUZtYKygq9BLBcQw4AWQOX3vYv3Zypm45ZZetVPhd6jLqPTgE oZAbFGZvnNppF1kdkRogYh2B/EYtRdo= To: Logan Gunthorpe , linux-kernel@vger.kernel.org, linux-raid@vger.kernel.org, Song Liu Cc: Christoph Hellwig , Stephen Bates , Martin Oliveira , David Sloan References: <20220420195425.34911-1-logang@deltatee.com> <20220420195425.34911-3-logang@deltatee.com> <7db3cc87-c491-1ba4-d778-1c7dbbf34c47@deltatee.com> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Guoqing Jiang Message-ID: Date: Thu, 28 Apr 2022 09:16:49 +0800 MIME-Version: 1.0 In-Reply-To: <7db3cc87-c491-1ba4-d778-1c7dbbf34c47@deltatee.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: linux.dev X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS autolearn=ham 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 4/28/22 12:08 AM, Logan Gunthorpe wrote: > >>> +        if (unlikely(!sh)) { >>> +            /* cannot get stripe, just give-up */ >>> +            bi->bi_status = BLK_STS_IOERR; >>> +            break; >>> +        } >> >> Nit, I would suggest to keep below original comment. > But the original comment was plainly wrong... I think it was for get stripe for read-ahead. https://elixir.bootlin.com/linux/v5.18-rc4/source/drivers/md/raid5.c#L5869 And it deserves a separate change if you think the comment is wrong, but just my $0.02. Thanks, Guoqing