Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3963314pxv; Mon, 26 Jul 2021 17:03:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz4fZmcRGlTNNBKvKW4M9SyPs9Mw+Nrgqq+HLXxZi+66qq16YYw6854ajpEXamXITDnlC5I X-Received: by 2002:a17:906:8281:: with SMTP id h1mr11086822ejx.352.1627344228650; Mon, 26 Jul 2021 17:03:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627344228; cv=none; d=google.com; s=arc-20160816; b=Xjc5oeCrhblJFTsKtXLxJmlmPgnHcflot7I04nNCsPSdnXQoD1YGi/+fjgzFUdOw6j m5512HBQ1ewybsUZ7Rm5uoJr6eaHcWT4byQxC64G7qqc/wXvvm3hAtseWoijWduCwVVu cVJj93c7J5gG4dkMENPGNZX0sbO/03rgFCxXEjJOh/vzr3FhLQfXzWDzjgFybTOmR8Iv 62hLfomA18IGULxs14ROBGEkX5eJaO7BcTRNpECjDnc7ymQ737QZNdwaFYgV2P0vcplB cS20jwvoWhyO9dQ1z/ezW5zQsImU4CPyVTy6Fw+5EluOZfwoRssJhO+nHU9x0Vsh4O5v RKDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature:dkim-signature; bh=bsmhKNCh74dd0jh/AeoLSfM0YVz66eHJHAkqLKDrD84=; b=qFfm/KQdVsTXVsFlvUs/KFOElimv2N3Mw9476q3xIq4PbWeL4tlCWrrtOAG3r2tlmm 8st+/4DBRX2/UTp2UuvmA2WvnoZyHA0rOLMPHOVA97CNqVyS4Z4TfuuIeTAzmmc6d8Lf iH+PRQbbv13xaGqU9BXipxum8MiSDx6nmq86zp7Dmtme1Vb89yZacyipIEC9xR5+knpg VXqTLBxzm8q36A2+uWToZI19pZ70r8GvJEhedxGCsDU0K/6CtVM4B7AU3+ALWTgfIcYd 2fiICDpSHCoZqSMRqNArDjr4/K5AXm0CE9r/YVPXupA1q+4aRN7V+D5fyrQES4lyhoEA 9fJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2021-07-09 header.b=jBfCeJJl; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=ZHj7YwW+; 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=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o17si1290243eja.545.2021.07.26.17.03.26; Mon, 26 Jul 2021 17:03:48 -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=@oracle.com header.s=corp-2021-07-09 header.b=jBfCeJJl; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=ZHj7YwW+; 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=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234287AbhGZXVT (ORCPT + 99 others); Mon, 26 Jul 2021 19:21:19 -0400 Received: from mx0a-00069f02.pphosted.com ([205.220.165.32]:19596 "EHLO mx0a-00069f02.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233770AbhGZXVS (ORCPT ); Mon, 26 Jul 2021 19:21:18 -0400 Received: from pps.filterd (m0246629.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 16QNvi4m005216; Tue, 27 Jul 2021 00:01:20 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2021-07-09; bh=bsmhKNCh74dd0jh/AeoLSfM0YVz66eHJHAkqLKDrD84=; b=jBfCeJJlGtbku146rCvjrGG/suI3c58BHeRRV/ericynMq8i++dUwmgKM6OTaNG9vzis TLtkFTFhG8MbpEvMGHQ978D6le4O1b4dW8cssIgJ5A5vokyP4tyE06VWZ565QBqJv3rd mIjg19mCS2gbwswdGQadh450ZfEIZ+NGx1dNe4ruUlWFrj8y/iY7ep+am+lqDzsJ+TWS T+NAWYgtW6DkEKQV3EykPPkVT7UdLF9F7lYhcvv5o7dCibEpU8uaXpWpu0IKKMJvFE5v I9I68o+rW/ukINLi6pz35Hc2L5InOBF1xk/p4M5ZNhD77p/lJfoNz3TWhIfxPNwJIziT qg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=bsmhKNCh74dd0jh/AeoLSfM0YVz66eHJHAkqLKDrD84=; b=ZHj7YwW+ZZMlTsMbExIvaNnid4UUXAFxdFJfs0v2r29K/nZvIo0uOsr2/Fc5q2cN2UA1 wh+acTYjwokT6NMD4tQ9pKy+E+cGBaX004CzDpoOCNaG7lsLYRIuETD5ACrXWuIsOywS Q4kIyCuz9j09hNco/vLRZd+G23POJZjC14pSSh2VJon9Appfxxs5NudWabVNAHraSpIi MX9MJD1JGEW2lLfiW0I8QfTtxjyljQXkuOA61uBVJt/Hbg/iW5r62YXKWggP29rbaj0s xU3MyQrDOuop1DvhO5OnAV/7YdwjvMlAXjBGid8WZOD8r9Djg8bbt5QJGI5tEm57eljN rQ== Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by mx0b-00069f02.pphosted.com with ESMTP id 3a2356gdnv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 27 Jul 2021 00:01:19 +0000 Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 16QLanCD022899; Tue, 27 Jul 2021 00:01:18 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userp3030.oracle.com with ESMTP id 3a2351v0u5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 27 Jul 2021 00:01:18 +0000 Received: from abhmp0017.oracle.com (abhmp0017.oracle.com [141.146.116.23]) by aserv0121.oracle.com (8.14.4/8.14.4) with ESMTP id 16R01GoL005404; Tue, 27 Jul 2021 00:01:16 GMT Received: from [192.168.0.104] (/49.207.206.224) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 26 Jul 2021 17:01:16 -0700 Subject: Re: [External] : Re: [PATCH] 9p/xen: Fix end of loop tests for list_for_each_entry To: asmadeus@codewreck.org, Stefano Stabellini Cc: 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 References: <20210725175103.56731-1-harshvardhan.jha@oracle.com> From: Harshvardhan Jha Message-ID: Date: Tue, 27 Jul 2021 05:31:13 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=10057 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 malwarescore=0 suspectscore=0 phishscore=0 mlxscore=0 bulkscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2107140000 definitions=main-2107260127 X-Proofpoint-ORIG-GUID: 5XAwKEU5GJBgiLuVWttHggUT-JsZLAnW X-Proofpoint-GUID: 5XAwKEU5GJBgiLuVWttHggUT-JsZLAnW Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 27/07/21 5:29 am, asmadeus@codewreck.org wrote: > 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 If you want I can resend the patch with this commit message > > >>>> Reviewed-by: Stefano Stabellini >>>> Tested-by: Stefano Stabellini > > Thanks for the test! >