Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1021634ybe; Wed, 4 Sep 2019 11:16:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqw9O9Qr7Nxh2Fh4C4d8C0t/+GnSAbkPs2iF0Z1HvvG0CrMvxUKi/vvUa/hy221DXdCGjH/A X-Received: by 2002:a17:90a:33a9:: with SMTP id n38mr6359375pjb.18.1567620962835; Wed, 04 Sep 2019 11:16:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567620962; cv=none; d=google.com; s=arc-20160816; b=KC7O1SsZTNCI97ndzWhyCiKvh62E+8Fik47jsNOj+Ppxy5dQM6oB9M5p5usgOZ/ZX+ xQFNwS9YEvaxN5vgUl13ztAEqvy2gmD4NhUh8GLPNvjB6ghofyMfCva5dQubHOAzK1r6 wB+TOQ8QLdQtGFtCx9/H7CaEk/a6ZfcOJPfu4HXjiJE6BwSziMXQKxSlnXo/MXgAt7MV vTpGgrVhIszWoITE1anNl9EIEkIS6cMFCNfHqNyynvD2nxKjd1j9MixjNtJ2JFoUpWcv 2mgf+50KF1yXQ7dt65RSyclUEvm8NJ2njsZ8aQLa58aWGwdgMD9XBDM6l6HOxEZeZUda NDeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=KGRhP/HUxtJ844D8BN17l215ir9SS28vHR0sqLDIdFk=; b=XYxN8Pp38x2/oWIQkAMgjTMlThmS2hZXleA6UQWqGpLzupMDY0qJBzkgSgsf2PTFiJ zvmrSq0+ktN5+ArlumgAtEEm+2lVRVIuNL04dyeSEgWuSLHqjsU1VfNieTRHte6ZYuky CgdYI7QrjjayDoT1kLMvY8++WRgQt5GqQjJSDErJ8dWfGWstMf4pPDTbq8bT5nhbYeOV m3fmR4q3yIAfvDYrvr39+7hkL7wVWggeSAZp5d60gk0Kb1oj45VwaK1QZCoknY+f871F /EPkBSEsQcLe4sTXFXaLicyWwRHcg7+WjRWWbaQROgUkmfBCWqrm/PXUuaKX6+iRc3wk DCaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=weZzINd3; 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 y7si9021985pll.314.2019.09.04.11.15.46; Wed, 04 Sep 2019 11:16:02 -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=@kernel.org header.s=default header.b=weZzINd3; 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 S2389671AbfIDSNN (ORCPT + 99 others); Wed, 4 Sep 2019 14:13:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:57836 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389432AbfIDSNL (ORCPT ); Wed, 4 Sep 2019 14:13:11 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CF979206BA; Wed, 4 Sep 2019 18:13:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1567620790; bh=EXJFMCe0j7c1JE5xw+Ox8ar2HYLuO+hkBy9PQix63Jw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=weZzINd3KkCzHMRoR8spRBfrdGbtwL5GGFd3WPXTTu7n16ZxFK3tuUjvpJCWpxhnw Yfm+r9xGIOrLaWDxTHgs0DIzUgC5OB84blk832cgZPjtxnBv5b6m1nypx3CULh0FRw kKrWc2oKiy1e6ddnIvPzY6CEpLpsdvZ+oujHIAOg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, kbuild test robot , Sergey Senozhatsky , Henry Burns , Minchan Kim , Shakeel Butt , Jonathan Adams , Andrew Morton , Linus Torvalds Subject: [PATCH 5.2 059/143] mm/zsmalloc.c: fix build when CONFIG_COMPACTION=n Date: Wed, 4 Sep 2019 19:53:22 +0200 Message-Id: <20190904175316.381917669@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190904175314.206239922@linuxfoundation.org> References: <20190904175314.206239922@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Andrew Morton commit 441e254cd40dc03beec3c650ce6ce6074bc6517f upstream. Fixes: 701d678599d0c1 ("mm/zsmalloc.c: fix race condition in zs_destroy_pool") Link: http://lkml.kernel.org/r/201908251039.5oSbEEUT%25lkp@intel.com Reported-by: kbuild test robot Cc: Sergey Senozhatsky Cc: Henry Burns Cc: Minchan Kim Cc: Shakeel Butt Cc: Jonathan Adams Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Greg Kroah-Hartman --- mm/zsmalloc.c | 2 ++ 1 file changed, 2 insertions(+) --- a/mm/zsmalloc.c +++ b/mm/zsmalloc.c @@ -2432,7 +2432,9 @@ struct zs_pool *zs_create_pool(const cha if (!pool->name) goto err; +#ifdef CONFIG_COMPACTION init_waitqueue_head(&pool->migration_wait); +#endif if (create_cache(pool)) goto err;