Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3962095pxv; Mon, 26 Jul 2021 17:02:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy1BhuC07xAGrSnILnf228uVMI/JCgsh3EE/tjDNSz6c8oXEYIEkREEo1FRbPrfadeg9W8H X-Received: by 2002:a17:907:e9e:: with SMTP id ho30mr19795171ejc.114.1627344128220; Mon, 26 Jul 2021 17:02:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627344128; cv=none; d=google.com; s=arc-20160816; b=XrvRMwBf59/jJ3JxvTyNeGVxZQ+InPpFvQ3avILzTzwaEHkIUVv3CLZb9N9Qdjwnf7 qVa32qs6rffUB5E15F4xkzZ6jmkRLQwOkEW3dXXTFQ4GnlHdF5vsKfmMRxfuenWGyw9I rn/PnUOTZigFiEoLCx6BU0NjHVViOrKBqq3PrXPBqYio52ZM8Wp9Y1qgB9oK+D53NzZL Dos5CUZ7C9JRY277+F2lEo+Qxa7OQC8jyZHEHwcqFw/FOZY8A19hjdV1QaTLlR3ZtD+J tXxQiZ5EBiWJzD3M6Ctkwj3GPP8JB2Ykglw0pgAR/tDrxvCs9YMLfUSUZDY+wzxiY9MC Im/A== 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 :dkim-signature; bh=AqWBIB/P4cglBp3v+EdtFD5gnv4amdJeHzvQ+TsnBuU=; b=Xj0SjSK5SfmDc4ns1Z2i87plp40UIIQg8EFNhQqCffjZ90F7l4HTanGFUkLYrFkUBs IVHm6IL3b4l61AzDSK0RDeq1SbaZz/OOw1mdpKzNG+DmUDJk1CrdOd5IIIsB9BjT+/ha 14Had77ZHk0MFx3ZLaZxa95YnEF6fCpJHwhFu2q75B6GF3k3mBx1HiJqCBZTdyxBKCqO AwVq7/XdjS3Ohe2MVtjGIooIcpvOCbOLRNvNaGhrgq/IYJp8YfgTI9gaMYoTp7CsOrCZ nzrfFBCo7rfvUP2lhdKl47+p9ackbR0269539f+RwZT5HKCkz3q8KybZyJJCXpqzspnz ljxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codewreck.org header.s=2 header.b=JlDKAnlU; dkim=pass header.i=@codewreck.org header.s=2 header.b=JlDKAnlU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=codewreck.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mp33si1356219ejc.40.2021.07.26.17.01.45; Mon, 26 Jul 2021 17:02:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@codewreck.org header.s=2 header.b=JlDKAnlU; dkim=pass header.i=@codewreck.org header.s=2 header.b=JlDKAnlU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=codewreck.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234038AbhGZXT4 (ORCPT + 99 others); Mon, 26 Jul 2021 19:19:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233770AbhGZXTz (ORCPT ); Mon, 26 Jul 2021 19:19:55 -0400 Received: from nautica.notk.org (ipv6.notk.org [IPv6:2001:41d0:1:7a93::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 798B8C061757; Mon, 26 Jul 2021 17:00:23 -0700 (PDT) Received: by nautica.notk.org (Postfix, from userid 108) id AB434C01F; Tue, 27 Jul 2021 02:00:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codewreck.org; s=2; t=1627344017; bh=AqWBIB/P4cglBp3v+EdtFD5gnv4amdJeHzvQ+TsnBuU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JlDKAnlU39KnHu8bxfIxaZRWzNJQfxcS0j5Cpgs2W1tAzNLhN7Cy1Ida9gcfAg848 Pn0w6gXZoPYmJ24Z+B8YI53JCMgaYRoVGqtk8xcEXHGwPxlPILXsEWSPDKhVTzUow8 90vgG2cRgHIrgte/Os5377+aoHAt8puIOf4asPsPldGH77Qpn4S5Jwxv3JJgQa7Iqd dR42VJUX5U2oHLJjBVU43lZNo2FyoYVQEqV5G5STknNkj4i9tBw2RkDo4IxVxtxPlj QLtM8qbwcm1alScM2SOuUdIjMePmlIVSX0KXGe63LhXnPqD4kFOIl4s1Fe7A9KGB3n vlM6gvXEulfsA== X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on nautica.notk.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=UNPARSEABLE_RELAY autolearn=unavailable version=3.3.2 Received: from odin.codewreck.org (localhost [127.0.0.1]) by nautica.notk.org (Postfix) with ESMTPS id 4FEBEC009; Tue, 27 Jul 2021 02:00:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codewreck.org; s=2; t=1627344017; bh=AqWBIB/P4cglBp3v+EdtFD5gnv4amdJeHzvQ+TsnBuU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JlDKAnlU39KnHu8bxfIxaZRWzNJQfxcS0j5Cpgs2W1tAzNLhN7Cy1Ida9gcfAg848 Pn0w6gXZoPYmJ24Z+B8YI53JCMgaYRoVGqtk8xcEXHGwPxlPILXsEWSPDKhVTzUow8 90vgG2cRgHIrgte/Os5377+aoHAt8puIOf4asPsPldGH77Qpn4S5Jwxv3JJgQa7Iqd dR42VJUX5U2oHLJjBVU43lZNo2FyoYVQEqV5G5STknNkj4i9tBw2RkDo4IxVxtxPlj QLtM8qbwcm1alScM2SOuUdIjMePmlIVSX0KXGe63LhXnPqD4kFOIl4s1Fe7A9KGB3n vlM6gvXEulfsA== Received: from localhost (odin.codewreck.org [local]) by odin.codewreck.org (OpenSMTPD) with ESMTPA id 7ce8ee03; Tue, 27 Jul 2021 00:00:08 +0000 (UTC) Date: Tue, 27 Jul 2021 08:59:53 +0900 From: asmadeus@codewreck.org To: Stefano Stabellini Cc: Harshvardhan Jha , ericvh@gmail.com, lucho@ionkov.net, davem@davemloft.net, kuba@kernel.org, v9fs-developer@lists.sourceforge.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [External] : Re: [PATCH] 9p/xen: Fix end of loop tests for list_for_each_entry Message-ID: References: <20210725175103.56731-1-harshvardhan.jha@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Stefano Stabellini wrote on Mon, Jul 26, 2021 at 04:54:29PM -0700: > > > Yes, I did test it successfully. Aside from the commit messaged to be > > > reworded: > > How's this? > > ===========================BEGIN======================================== > > 9p/xen: Fix end of loop tests for list_for_each_entry > > > > This patch addresses the following problems: > > - priv can never be NULL, so this part of the check is useless > > - if the loop ran through the whole list, priv->client is invalid and > > it is more appropriate and sufficient to check for the end of > > list_for_each_entry loop condition. > > > > Signed-off-by: Harshvardhan Jha Will take the patch with this text as commit message later tonight > > > Reviewed-by: Stefano Stabellini > > > Tested-by: Stefano Stabellini Thanks for the test! -- Dominique