Received: by 10.213.65.68 with SMTP id h4csp880998imn; Wed, 4 Apr 2018 08:48:18 -0700 (PDT) X-Google-Smtp-Source: AIpwx48U6/VcZtR94I2IOhhYq/nvZzVDfwc7kjSKbcFgNPkyFYam5ERGkeA8cIWjUIxUsNbP0nBI X-Received: by 10.99.96.141 with SMTP id u135mr12537630pgb.49.1522856898505; Wed, 04 Apr 2018 08:48:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522856898; cv=none; d=google.com; s=arc-20160816; b=tmTkcZw19wZZu1d8yIyz/GnMh0m1wnScvsQHgF3/LHjQs81j29LTQ1uQq21PCQ20Tm QNzsOgddXkkhbO7prOzS1LuORP8yZKVU8JUDBjESXAVHasowihzMEgqa1N2HDYR8ofO6 pbSfy3dRzJRwOv7E7GJeyRINgSwt2cKrGe/yoaJYd+tekvc7ewqMxTr1SYe/pjoz2/VE 4I7HrowoEZCpk6y/BMUJHfn6RfoUgkYoVDaOY+M/95VYGn2HVOffZJu5auMLnuer3RGU JoMm0HZ8Lxua9uEdl9ObLqaR/ZxPfOYXft5ETVf6Hi34akupaUeJnWQnHzEBg5Gf7hqh 1Lcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:thread-index:thread-topic :content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date:arc-authentication-results; bh=iGJOZhuAK3NjhPf0oM/obwtSHzJ0OQh+oLesBbGCUMo=; b=g4ulTzDqIBWHTSTO1+ZjUTWiMZzLw3dkIWLl1QqO508WGhlOBfxwIkBfUnJFcQb3Hg dMPpDHPfNhGtIZ5WZSWExv2K3VjekEqt8v9G/UwoF8GRJKra6rgP+BaVrGlDNfMTC/CB d7agHoOEWVe3rz9D2rBCn+h7fp5G5bBPwt7zC+Bi9llxHoxg8DxHP4fkrWYV5YT3p47s XLaG8Bo+Rty1Zz29OG+3LZtbNknhgSsY3aUBA3frKk3xc2Szy/medlgsP/UxtPru5xPE RKoqHlc3HBSjm/3JYIRGO+6/6j6EMm1W9GyJU4lI0QdYLLwoG9Xp2+nPN17KJJS9Hn0K BUvQ== 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 76si3852776pgd.712.2018.04.04.08.48.03; Wed, 04 Apr 2018 08:48:18 -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 S1752148AbeDDPqd (ORCPT + 99 others); Wed, 4 Apr 2018 11:46:33 -0400 Received: from mx1.redhat.com ([209.132.183.28]:36202 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751648AbeDDPq3 (ORCPT ); Wed, 4 Apr 2018 11:46:29 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 2752F8046B; Wed, 4 Apr 2018 15:46:29 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id D0B9984F6; Wed, 4 Apr 2018 15:46:28 +0000 (UTC) Received: from zmail21.collab.prod.int.phx2.redhat.com (zmail21.collab.prod.int.phx2.redhat.com [10.5.83.24]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 6C61FB3487; Wed, 4 Apr 2018 15:46:28 +0000 (UTC) Date: Wed, 4 Apr 2018 11:46:28 -0400 (EDT) From: Bob Peterson To: Andreas Gruenbacher Cc: cluster-devel@redhat.com, Herbert Xu , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, NeilBrown , Thomas Graf , Tom Herbert Message-ID: <1366548861.16037365.1522856788263.JavaMail.zimbra@redhat.com> In-Reply-To: <20180329120612.6104-1-agruenba@redhat.com> References: <20180329120612.6104-1-agruenba@redhat.com> Subject: Re: [Cluster-devel] [PATCH v2 0/2] gfs2: Stop using rhashtable_walk_peek MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [10.3.116.80, 10.4.195.4] Thread-Topic: gfs2: Stop using rhashtable_walk_peek Thread-Index: ZtGGhfwbsmsK5M0roIu6JXkYVcw0MQ== X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Wed, 04 Apr 2018 15:46:29 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ----- Original Message ----- > 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. > > Thanks, > Andreas > > Andreas Gruenbacher (2): > lockref: Add lockref_put_not_zero > gfs2: Stop using rhashtable_walk_peek > > fs/gfs2/glock.c | 47 ++++++++++++++++++++++++++++------------------- > include/linux/lockref.h | 1 + > lib/lockref.c | 28 ++++++++++++++++++++++++++++ > 3 files changed, 57 insertions(+), 19 deletions(-) > > -- > 2.14.3 Hi, The patches look good. The big question is whether to add them to this merge window while it's still open. Opinions? Acked-by: Bob Peterson Regards, Bob Peterson