Received: by 10.213.65.68 with SMTP id h4csp1520242imn; Thu, 29 Mar 2018 06:17:23 -0700 (PDT) X-Google-Smtp-Source: AIpwx49P5AcczqHpFi25dE2Mo5fNsoAoJ58lSbix3XHwiInkMFtDTYxyZnByAXg2sQrYHCmorFSH X-Received: by 10.99.122.22 with SMTP id v22mr5330037pgc.300.1522329443182; Thu, 29 Mar 2018 06:17:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522329443; cv=none; d=google.com; s=arc-20160816; b=r4QaJpITCsAhLSNg/OKCvx0XNjFzhgHONxMK4j4G9NAo5YgsPAfqBhKYnDmHwN0Qb5 L5X+0XMwBNhADq/hvl0IXnR2fpIDuhWWAEOpqlZKKCqRUNVJMB1wGpEqZzA7IhKUuwHI 37FmGOTD1IAo0DwneCfcFIQtq/Jx34An3pU+FcqJGZc3ad5Hq8BMebDZ+tm1BRT6WfTY UpotiT/gE97mNTI3qDgr1OCA1t4Zyr78Gj8rcW5XJZ10CDP51JZJuW4kpUF6MdIat9zK Kligs/cR+7BIAGyJJJOntF/rDtjy3spE/e4Ov/KEoF1fmv8VpsBU0a2W2yFYharfWX10 uG6Q== 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 :references:in-reply-to:mime-version:arc-authentication-results; bh=h6ViTHq1075IKn3mOaIdTOWHm24CzoZVqinjQv8Tiw8=; b=o0xEq2Pz66Ds4jNyfrhWAFCDybTubP+nJAqkEJ9hIt72z5V0YwoBeM6Xt1vNW8N81I Gasw8a1WAfo32M+1FSm5uJ4cuvGX0gcFF1iq6Oa+cNUmriypTjB272WWHnxtxPT4G30t 42l79bB4bpHZcLstQFPrJdxn9b3yirU1MSrzruqwY7Is0vGTGbVfoUBXQb+CAQ8q97zp WcA+PfL3X9h5dzlKWeqKvUaKO+BIAO4wIgOMNJeqbbueRAI1Z0kjFhFp7MfZNPP7RdVj xMxU3J6j2mJpIt/j60LKXMUUtHl497fqpg134SD9qYltB2bHffZ61dY5AQNalm6CqXiu IHlQ== 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 3-v6si5739538plq.402.2018.03.29.06.17.09; Thu, 29 Mar 2018 06:17:23 -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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752511AbeC2NP5 (ORCPT + 99 others); Thu, 29 Mar 2018 09:15:57 -0400 Received: from mail-io0-f195.google.com ([209.85.223.195]:35742 "EHLO mail-io0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751908AbeC2NP4 (ORCPT ); Thu, 29 Mar 2018 09:15:56 -0400 Received: by mail-io0-f195.google.com with SMTP id x77so1381836ioi.2 for ; Thu, 29 Mar 2018 06:15:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=h6ViTHq1075IKn3mOaIdTOWHm24CzoZVqinjQv8Tiw8=; b=WfpEDWSquNP+jPwi9vVe+a9oaron/rOt4GeDzs3wMz0X18jdbBdgTbd3FRpRDqlUpO sDTWJ2HWlrTwQuMSnxYFGkXN+dUO7ksUI+5ezGCHz0YU2zLsTjD1eWIJqJFVzCJ2fDwY QFg8YXvM9t0ldkQNDepv2epg2xH7o+QcrLh6TvsQpITDzjxqLyb4eUO8P40OtDtTGS0j XTIdsgH8pmIdMP0BuZV/Sprht9/A4iHazG54iOHcJKjlrzEmCwPY75QsCOLbNW9xBRer jNblHMhidTbT1nelr1DIdFRacTCg9hAkhJPss1LmwVu5BJ3Vv5FLGDhYms4hLnZLRG9/ JVdQ== X-Gm-Message-State: AElRT7ExVFfktPwPJzQ3PMVIeEJbJTOuXXhl7CCZ569tB8zOxzWN1pHK +DZKNSqZKeuiy74T0zCb+h1MGYIEqPy+aM+wkbrDhQ== X-Received: by 10.107.46.149 with SMTP id u21mr49939869iou.181.1522329355516; Thu, 29 Mar 2018 06:15:55 -0700 (PDT) MIME-Version: 1.0 Received: by 10.79.12.135 with HTTP; Thu, 29 Mar 2018 06:15:54 -0700 (PDT) In-Reply-To: <20180329123544.GA22551@gondor.apana.org.au> References: <20180329120612.6104-1-agruenba@redhat.com> <20180329123544.GA22551@gondor.apana.org.au> From: Andreas Gruenbacher Date: Thu, 29 Mar 2018 15:15:54 +0200 Message-ID: Subject: Re: [PATCH v2 0/2] gfs2: Stop using rhashtable_walk_peek To: Herbert Xu Cc: cluster-devel , netdev@vger.kernel.org, LKML , NeilBrown , Thomas Graf , Tom Herbert 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 29 March 2018 at 14:35, Herbert Xu wrote: > On Thu, Mar 29, 2018 at 02:06:10PM +0200, Andreas Gruenbacher wrote: >> Here's a second version of the patch (now a patch set) to eliminate >> rhashtable_walk_peek in gfs2. >> >> The first patch introduces lockref_put_not_zero, the inverse of >> lockref_get_not_zero. >> >> The second patch eliminates rhashtable_walk_peek in gfs2. In >> gfs2_glock_iter_next, the new lockref function from patch one is used to >> drop a lockref count as long as the count doesn't drop to zero. This is >> almost always the case; if there is a risk of dropping the last >> reference, we must defer that to a work queue because dropping the last >> reference may sleep. > > In light of Neil's latest patch, do we still need this? For all I know, Neil's latest plan is to get rhashtable_walk_peek replaced and removed because it is unfixable. This patch removes the one and only user. Thanks, Andreas