Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1836096imm; Tue, 22 May 2018 10:04:57 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoUt0oINQsKWWzapM3htGvdB9qmjmDZ7KHnU5xgq1uPZTDzAuws4XuE/dGvbtdn5/XSCwAz X-Received: by 2002:a63:31d4:: with SMTP id x203-v6mr1885625pgx.389.1527008697627; Tue, 22 May 2018 10:04:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527008697; cv=none; d=google.com; s=arc-20160816; b=WjuEwvw4SkiD5HCBJIWcBd62IfM9jxMEg+SrseT439HfP9y2wTBT6CGk5mrI6+U9Tf B3opqfl7e2DMMFsPurgP6Cfgo+XdxPo6dJVwAabFjaHQI/h9+8VftF9Fs6x31xpKYBpH ujXsEQQnY1xsgYNq4oeiQrU1EHSBefM2V37H5ck8jpkpDETsG1UmAqKBRfzFmxc+mxcL iUh8bk4JA0P1YYcqIj0z7+ierBZ1/6e3uk8F0IpNjzWqDfpNaAA4uuwhgijyCVape7Rm aGbmgpnswRQmvwsBbpg/FKXBhPmJRZXsSiwqPq3fUzB2Fu4IGgFnwYHfOlqRGRh0yONv tFaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:user-agent:in-reply-to :content-disposition:mime-version:references:reply-to:subject:cc:to :from:date:arc-authentication-results; bh=Mux3x9uLlLm0wA1YZ5hofxDfmVzaPXHAQKAEnXirhEA=; b=l6AmKWf+pTTNU1Ew2dxVVrZpLfwiR51J7h8iy3/TqY6yb78t2UAE3ZMWLkM/Fye0Oh i1SXbQbycjjHJF3OJkRTwcydn4vFvX8sotNNA499/t4wpiydV7NEGA7FlOkDtWow/cND XoNBETe0UAVA+NBqJR+lxdu/Mk1/HVAusAYzZtBVlD7YiQx/uApKUnHR/tbHRMPVp9qt M18VXzHT5X5Nf/MIU/+e+gXXb397fZuvdpW7Ru0KYlEFHp/SCj7VkMB20GMR2yaLb2yt Nu4+XC8ywaaM8Ic80Kk4Nbjt0/P9oFERyph9Yeojgr1SJfghZ26MI6MHSv/TW+9I/eSi +noA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s14-v6si12895070pgf.640.2018.05.22.10.04.21; Tue, 22 May 2018 10:04:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751567AbeEVRD4 (ORCPT + 99 others); Tue, 22 May 2018 13:03:56 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:34565 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751240AbeEVRDx (ORCPT ); Tue, 22 May 2018 13:03:53 -0400 Received: from pps.filterd (m0098414.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w4MGrlLg091004 for ; Tue, 22 May 2018 13:03:53 -0400 Received: from e37.co.us.ibm.com (e37.co.us.ibm.com [32.97.110.158]) by mx0b-001b2d01.pphosted.com with ESMTP id 2j4q0b8y5a-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 22 May 2018 13:03:53 -0400 Received: from localhost by e37.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 22 May 2018 11:03:51 -0600 Received: from b03cxnp08027.gho.boulder.ibm.com (9.17.130.19) by e37.co.us.ibm.com (192.168.1.137) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 22 May 2018 11:03:47 -0600 Received: from b01ledav003.gho.pok.ibm.com (b01ledav003.gho.pok.ibm.com [9.57.199.108]) by b03cxnp08027.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w4MH3lWK61014216; Tue, 22 May 2018 10:03:47 -0700 Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id F3E8BB22D2; Tue, 22 May 2018 14:05:36 -0400 (EDT) Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id BC71AB22D8; Tue, 22 May 2018 14:05:36 -0400 (EDT) Received: from paulmck-ThinkPad-W541 (unknown [9.70.82.108]) by b01ledav003.gho.pok.ibm.com (Postfix) with ESMTP; Tue, 22 May 2018 14:05:08 -0400 (EDT) Received: by paulmck-ThinkPad-W541 (Postfix, from userid 1000) id 2C1DB16C0E7A; Tue, 22 May 2018 10:04:33 -0700 (PDT) Date: Tue, 22 May 2018 10:04:33 -0700 From: "Paul E. McKenney" To: Linus Torvalds Cc: Roman Pen , linux-block , linux-rdma , Jens Axboe , Christoph Hellwig , Sagi Grimberg , Bart Van Assche , Or Gerlitz , Doug Ledford , swapnil.ingle@profitbricks.com, danil.kipnis@profitbricks.com, Jinpu Wang , Linux Kernel Mailing List Subject: Re: [PATCH v2 01/26] rculist: introduce list_next_or_null_rr_rcu() Reply-To: paulmck@linux.vnet.ibm.com References: <20180518130413.16997-1-roman.penyaev@profitbricks.com> <20180518130413.16997-2-roman.penyaev@profitbricks.com> <20180519163735.GX3803@linux.vnet.ibm.com> <20180520004318.GY3803@linux.vnet.ibm.com> <20180521153337.GF3803@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-GCONF: 00 x-cbid: 18052217-0024-0000-0000-00001875B14E X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00009066; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000261; SDB=6.01036093; UDB=6.00530004; IPR=6.00815222; MB=3.00021242; MTD=3.00000008; XFM=3.00000015; UTC=2018-05-22 17:03:51 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18052217-0025-0000-0000-0000501A3AC7 Message-Id: <20180522170433.GX3803@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-05-22_05:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1805220185 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 22, 2018 at 09:38:13AM -0700, Linus Torvalds wrote: > On Tue, May 22, 2018 at 2:09 AM Roman Penyaev < > roman.penyaev@profitbricks.com> wrote: > > > Should I resend current patch with more clear comments about how careful > > caller should be with a leaking pointer? > > No. Even if we go your way, there is *one* single user, and that one is > special and needs to take a lot more care. > > Just roll your own version, and make it an inline function like I've asked > now now many times, and add a shit-ton of explanations of why it's safe to > use in that *one* situation. > > I don't want any crazy and unsafe stuff in the generic header file that > absolutely *nobody* should ever use. Completely agreed! I was perhaps foolishly assuming that they would be making that adjustment based on earlier emails, but yes, I should have explicitly stated this requirement in my earlier reply. Thanx, Paul