Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp5659003imm; Tue, 12 Jun 2018 11:07:35 -0700 (PDT) X-Google-Smtp-Source: ADUXVKL+Udr3hh0JrizJvV3sxUZ0IUKpqAhi3JGsBQABWsh+BX11NKtNJ3svJWEsFkAS5pq+s5Va X-Received: by 2002:a62:660a:: with SMTP id a10-v6mr1503214pfc.156.1528826855687; Tue, 12 Jun 2018 11:07:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528826855; cv=none; d=google.com; s=arc-20160816; b=YIE6g3zLW0zTjPpeIGwFM6xT57YftFnRMNUhQguuLIMmb0swDejgBI8Pqo56cJ3Inj AdoNQfcQGVw7B41afBJDEJbtmsBSYJh/AwrkZfnt6rE9NFCtQaeggMP22YKJ2ijpXRMI lm6Iuq9eid270sSJNvps0Nsmt4GSGVtdbXEhp4r8ZAfGQkwl0wRnOIFA9o7WKhIa6Vxi AIaVituAisvpGxC4nn+L1EX1YmKJEtW7xyXe95yRqTvpJ4TFmLU8bWRHFX4D1DNqZL5R Ue7i/O88r0QuzK6445ZD+yi1MFX7Hxn8dknrwiZQDzKB8stsC+DSr/7HcFV07SQ3efhq gmAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=1qOZV64h2gQWvgTr9A4Vu5UHb+aaXcWG2xSDjGxpz60=; b=lMrZoI2/T7MOzO3d7rnKoEJKi5MmPp1aLvX00XU4zVsTIVLLv/FZgVcRnzpefPQ4sM PrpyQpi9EA4/BJqCXxNA7L/hG+wWCNv/nzuaHICg1VunVUCGN/65hPWAG4gTE2TVlrLM rJUd2mbmyxl/6z4T7y0PJTIVENrst/fIFSb8lSd2ySG5A9CqssySValgXbMM1Jj0H62c UhZi3WUlKcQb3PSceW8+nNhwTECOJU/u61WBoHZYcOx6O2Xdwl0zSrtnUioyU+RLBYTM EbhBboBBfETyslwwrOxEN/hdzkAsVP8c89VfDYXP/mub+SdMMZKeW2noGNlF9eW+A25e 6B7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=dY7rbfbp; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v6-v6si555595pgf.363.2018.06.12.11.07.20; Tue, 12 Jun 2018 11:07:35 -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; dkim=pass header.i=@linux-foundation.org header.s=google header.b=dY7rbfbp; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933784AbeFLSGx (ORCPT + 99 others); Tue, 12 Jun 2018 14:06:53 -0400 Received: from mail-io0-f196.google.com ([209.85.223.196]:32848 "EHLO mail-io0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753979AbeFLSGw (ORCPT ); Tue, 12 Jun 2018 14:06:52 -0400 Received: by mail-io0-f196.google.com with SMTP id d185-v6so468193ioe.0; Tue, 12 Jun 2018 11:06:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=1qOZV64h2gQWvgTr9A4Vu5UHb+aaXcWG2xSDjGxpz60=; b=dY7rbfbpF7A3SqYTmrOtu/gxbBQKsw1JnILZ57IZOv2zlIjrinj0GQ5AtxnE8ZtnNQ 5WjWzJjllb4+kkymXJKZnrbULwgwD7ArNCBYiA1xTLHMVsyuDOUrIf62i+vtNliUEtRM 7xLziAu3olDiT0lXKCpGx1myxwa8j68d67CCE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=1qOZV64h2gQWvgTr9A4Vu5UHb+aaXcWG2xSDjGxpz60=; b=cGnqBCLUT2NcC18nAk+cbyP9RmNGAOoX80VYUoWhsYaQJ2CN3eFSLzFgdop02oCXgx js1yQNQxT/Xa5VJ23SwKDHS4c+DI7qwJk/bjH2TZWKAZ+RkBb3jlYieN9jhwjbBr6adO JLR1xskMz1HMA40qUcKzoWe9OkROQdIN6T3vyoB8T+AZSpCqy7xIXikIt5K5mogc5oOr DKUnYbx9IyR0mKIaehQViBqy2xlbj51wx6ArIMMGxyEMBVTr+FPF6qVsVFNIE2GrV9SU 7H1zHgRhEeqSnwvcT2Tk9H4Gl2kZUV/WjPGDLatiaZewGXwDE/sAbteQKpzmih3jEfZn zlTQ== X-Gm-Message-State: APt69E32WiFvGXs0Sx3IJHC0KKWZLU21iXWSe7kNglpHjL3Z76d+i939 uZIfcPlXg531MtH3KfKDmcPzuvJ8m7zIli3gJ/I= X-Received: by 2002:a6b:f90b:: with SMTP id j11-v6mr1610582iog.238.1528826811228; Tue, 12 Jun 2018 11:06:51 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Linus Torvalds Date: Tue, 12 Jun 2018 11:06:40 -0700 Message-ID: Subject: Re: [GIT PULL] Please pull NFS client changes for 4.18 To: trondmy@hammerspace.com, NeilBrown , Paul McKenney Cc: Linux Kernel Mailing List , Linux NFS Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 12, 2018 at 10:42 AM Linus Torvalds wrote: > > So could we please have a cursor entry for RCU walking, and actually > have a agreed-upon way to do this? Maybe even using the low bit in the > "next" field to mark a cursor entry generically - the same way we > already do for the HEAD field in the bit-locked lists, just on the > actual entries _on_ the list instead. The real problem with a RCU cursor is that the lifetime of the cursor is also RCU extended, so you can't do the traditional "just allocate the cursor entry on the stack" that you can with synchronous locked lists. That makes it slightly more inconvenient to do simple cursors. The dcache code has a fairly clean "dcache cursor", but it does use a whole "struct dentry" for it (and it depends on "next_positive()" to just skip them because dursors are never _positive_ dentries, so there's some subtlety there). But at least it's a very explicit cursor model, not that odd delegation inode that seems to have a life as a real inode too. So maybe a generic rcu-list cursor is too hard to do sanely, but can we at least encourage that very explicit cursor model that is *only* a cursor, and might not be touched/moved/reallocated by something else? Linus