Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp759546imm; Wed, 11 Jul 2018 10:26:56 -0700 (PDT) X-Google-Smtp-Source: AAOMgpe0VaSLXPTfFiewz+Rskp/BXJKLtA7Oy7QbDIoWmmvJGoDrH7499XjJoWQEyC8tQ4CU/KL3 X-Received: by 2002:a17:902:708b:: with SMTP id z11-v6mr29260926plk.231.1531330016909; Wed, 11 Jul 2018 10:26:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531330016; cv=none; d=google.com; s=arc-20160816; b=TPoKC46f/qijsjziahA+rhis50OyWGpPSUAOg9gcWSqavJiv0qFvtx9e8yEZITINGr 4vSLbXqPUItQ1RV8ycTlNYwbk50DdsYWLOCIke3DvObW9MRN8NLSVvBVjd6hfLZoFWuv +I5F4dRh7mQ9Noy/KBb3Fn/dDX7T3u4SZNu0ogSoz92592o7hPFrRrAzQHpyQgmH1VhZ ZL9M6RbZg3ykx1ESaFeD9glBC7tPeNYRKV1Kz6LbfFKmdXZGZP8yRCH6bGeRyBXHpxMb Oq8e6JOja6fSkDQObpGzWB6cpJ9QOvuhMj0zPprN5mxstZ5hbx5HJRM0To7AjRVLNXJW Q3Gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:content-id:mime-version :subject:cc:to:references:in-reply-to:from:organization :arc-authentication-results; bh=+B1bVL5e+SR5wktEFGMumV6L3I9nPCKCfXurHCcVyh0=; b=Ebr+Hvv3RXwyonRHlM/zK4fkVEgOi1CA2BvQ6JCm+1m4Cx6cgCxaB7XjD47tqxE9Kq cDSqkNDRSocxR+k2iXm8/UCGIoeMch4yxXpW2aKpiugNI7FrxTwC8Dx489AC0OPL2w80 brcQp4Is52hRaO4BLrjQb+YFlIJDLECQxamo/AFHCdBnTZnU2bAd+tniJQ7mY/dMFany jfDVgEWPPeD2i3lwPI1uHBLqrMH70jULZ+lWsFgqxAU6ptDpKBc7VZhioZf7lEjgQEVV zY6Y9LrdflD5nGYgTm3fKjslgC4xNEILysK6QwMnQGBOX0sd/q+l4WoDf4uUqzToyqy8 6eXg== 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 194-v6si5100794pfz.101.2018.07.11.10.26.41; Wed, 11 Jul 2018 10:26:56 -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 S2388809AbeGKPCJ (ORCPT + 99 others); Wed, 11 Jul 2018 11:02:09 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:43880 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1732602AbeGKPCJ (ORCPT ); Wed, 11 Jul 2018 11:02:09 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B1B377A7F0; Wed, 11 Jul 2018 14:57:25 +0000 (UTC) Received: from warthog.procyon.org.uk (ovpn-120-149.rdu2.redhat.com [10.10.120.149]) by smtp.corp.redhat.com (Postfix) with ESMTP id A38202156889; Wed, 11 Jul 2018 14:57:24 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <153131984019.24777.15284245961241666054.stgit@localhost.localdomain> References: <153131984019.24777.15284245961241666054.stgit@localhost.localdomain> To: Kirill Tkhai Cc: dhowells@redhat.com, viro@zeniv.linux.org.uk, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, akpm@linux-foundation.org Subject: Re: [PATCH] fs: Fix double prealloc_shrinker() in sget_fc() MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <24666.1531321044.1@warthog.procyon.org.uk> Date: Wed, 11 Jul 2018 15:57:24 +0100 Message-ID: <24667.1531321044@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Wed, 11 Jul 2018 14:57:25 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Wed, 11 Jul 2018 14:57:25 +0000 (UTC) for IP:'10.11.54.6' DOMAIN:'int-mx06.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'dhowells@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Kirill Tkhai wrote: > diff --git a/fs/super.c b/fs/super.c > index 13647d4fd262..47a819f1a300 100644 > --- a/fs/super.c > +++ b/fs/super.c > @@ -551,7 +551,7 @@ struct super_block *sget_fc(struct fs_context *fc, > hlist_add_head(&s->s_instances, &s->s_type->fs_supers); > spin_unlock(&sb_lock); > get_filesystem(s->s_type); > - register_shrinker(&s->s_shrink); > + register_shrinker_prepared(&s->shrinker); > return s; > } > EXPORT_SYMBOL(sget_fc); > I already folded in a fix from Eric for this, but Al hasn't pulled the updated tree yet. David