Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2812466pxu; Sat, 19 Dec 2020 03:02:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJxobh39YSXMtV31ZzkxDK877DmkvgGmNjoebNu1l3f2+hlWigutbzo01USZ1t+BvMw7wFYy X-Received: by 2002:a17:906:94d4:: with SMTP id d20mr7853088ejy.475.1608375744375; Sat, 19 Dec 2020 03:02:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608375744; cv=none; d=google.com; s=arc-20160816; b=PDVs4Jv9Xb570haIfAQsg4caye1lPdFbPvjaOWSRUl+06ZHwI5pUGZr+3IY4BgkskA xfJcD1oznd45nsxCLUEm0O6LmaxEz/95Nu9DVc1TsxIrB7iWoPvy6NxTvSkoKTfHgsBe PWpzBCUWlz8NfrJhAKOS3YzSDouGx91lnHKBZekAFXUucRP4FTbS6lf765F0wFskSV9J Emg3wMqdQCckdKh/hwvEcojim6wCUobFm++B1MSwaN2wXAbXWZ9Tb7GsNb7ZKxTa49a9 XOJ0ouBubTsq9MCFwR6urXzDwfYXJv4E2l5Vhd8RKIGaKbPxCpuPPlyEXlmj/xx2Cqr3 3gYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=9Tovlk3PZrIVZgtAGJq7unM4LmH2J/CgwJArapMfMbA=; b=Mw5H9ql9mROqsiKz6pRVMD/RvdhrVW0Qhwd5s+ZdlV8hDHXhGWAqbHDphxPfdU9Tvw sK7UaDdhnrJLWB799r6qQP/yhtQmIpYGE3Xbxu7KU23K/7CV+x+0AdSd4Aj8mSl2IADT E0zGPOoPmsXDw3nGFtez2cBZohMWCiJFrSutNsFxK9I0JS7MGciTnO7a3/c+EpHOUd2e Y6NDD2yoIf/jWv7VwXVWTaqHoSxlTblfjwkftcF/H+ZxuYBtAoHOiISUELzIDeiuMqX/ ftw2TyLO7K83FVAG0A3Cd7PVG5bNKM6geouoKaGr4PB0n+V6FNyN2xSNh+OdM47m8BF+ zN/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=IEubuhqK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c25si8474345edx.588.2020.12.19.03.02.02; Sat, 19 Dec 2020 03:02:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=IEubuhqK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726456AbgLSLBX (ORCPT + 99 others); Sat, 19 Dec 2020 06:01:23 -0500 Received: from mout.gmx.net ([212.227.15.15]:50979 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726442AbgLSLBW (ORCPT ); Sat, 19 Dec 2020 06:01:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1608375575; bh=Sm0KEeivfCSGkhYBFSQzrl+3S9zeurR5ZEKJwy/t8Ko=; h=X-UI-Sender-Class:Subject:From:To:Cc:Date:In-Reply-To:References; b=IEubuhqKOH9ZJITg1BsZEBkQ3DH0ICHmRQv+6p06lbFPWYmbQ3GaZ0cKMtJz2g0jI akc0o/o7AsX9zEHsXB4LJOPOhvRb1cd5s/ICsTSr5teEADXMfFOwj96NZFVk3xPCrD eBP8qF9wYx6C0w3f9r/5r6JBNPXXHNyeeLxMkUl0= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from homer.fritz.box ([185.221.150.14]) by mail.gmx.com (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1M3lc9-1kqr4e08ix-000pe6; Sat, 19 Dec 2020 11:59:35 +0100 Message-ID: <18669bd607ae9efbf4e00e36532c7aa167d0fa12.camel@gmx.de> Subject: Re: [patch] zswap: fix zswap_frontswap_load() vs zsmalloc::map/unmap() might_sleep() splat From: Mike Galbraith To: Vitaly Wool Cc: LKML , linux-mm , Barry Song , Sebastian Andrzej Siewior Date: Sat, 19 Dec 2020 11:59:33 +0100 In-Reply-To: References: <6946d6e798866276f0d635f219cdd4ad05156351.camel@gmx.de> Content-Type: text/plain; charset="ISO-8859-15" User-Agent: Evolution 3.34.4 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:H1qM+XieyYJ5XxGNZGXLrMgGY6KxifsgBXFl13LTsezN16W1G3D LVcrl/BpSxi4JEgkgWsF2tX8Q4LuuQhaP1jFMDz9XgaoaRcafM/8aA8k0U7140dA/Vuz9ED w2RN4bUCqyAY5xG0q5RFYwt+g5SMQyFvfJ26wyxb//+/90kfvVr1dwAb22OgtNeNFtJvmMb 5lYm6sRNCewl2mZEDGCjA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:u0vBkrP4qEM=:l/AkobQXgw0LIW6hNsnSp0 JgODlteCnls/7zCxzc3+Dvc1kugVRFV4TqUCAjDPRGSz7mivIQKpUtN9PmTp2OPzveHA8G7uK zO2dQalru9WE+8EdAbBczE7GuMu/5JoMez40nh8bV31fmrsbM4XpzLdhcG47gpKuD315f2ig0 3t6p0E42/LW93isf3RFfbuXUhbVyB9Fq9VrhgAwMr3yqDPtUFJsWd35e0ehdfhhZBsjiBEqWF wKpxblRtwjkvtKbY3+OzkS975boj15vCe/KZVaf9d4sjUr2MQbJ6AbHQS2SS9UttJy7xAo/yi IJ1X7p2EL9SeyFWm4z6Uw59+Klh9f7NhjX+wBIBfs9/BnBfkx2oY0EjwanhhaEOrsV12aYSXE mBCPIsIsir2l9A3E5Ke8xipMXPHlQbtEeEMRk6QXF3D5qA8hC2WV63aZdH74CJnLw3JPXKbix 7NjBLXD7LzwdaRm5J/M+zcjGw3cswVMJEqftew9KLtTyv1iCbDiyBtXnVdyhg2bPDcBQzea8C g4UWIaqlItyW2aKamtj7LDlNu5x7JdNfWtpM/U2IRSlOskqCcRuYJc6H1SwU54kxwAWXPHJCV il4gRD2nyR9EcVmRp2GzG1u+gJqbKgTx5e+ziU327uh+wo6dStjK/jy2dvYVpqcabH+HXB9Pw iZ4cLFfs8zGbWWVDsfgVxKwabhMIFkpY8QnzRAMC+dFHs1f2dYYL4yAayLG6hDbhfKFwzZJjJ 0g+QzXc44if5hju/tMvCriIKltGbzdAAXxRgelhYpSnpTH438ecT3QjXum9WGebLVZaYJNkMY KYJK12rkyhl+vXvmsW2S7MTLYgug7ZQnhbNJFb1i1pQmbJUDAedR5FIVzQdfdZsk7TVerh+rA TUwfJituVrZnruO+84yA== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 2020-12-19 at 11:46 +0100, Vitaly Wool wrote: > On Sat, 19 Dec 2020, 11:27 Mike Galbraith, wrote: > > > The kernel that generated that splat was NOT an RT kernel, it was plai= n > > master.today with a PREEMPT config. > > > I see, thanks. I don't think it makes things better for zsmalloc > though. From what I can see, the offending code is this: > > > /* From now on, migration cannot move the object */ > > pin_tag(handle); > > Bit spinlock is taken in pin_tag(). I find the comment above somewhat > misleading, why is it necessary to take a spinlock to prevent > migration? I would guess an atomic flag should normally be enough. > > zswap is not broken here, it is zsmalloc that needs to be fixed. Cool, those damn bit spinlocks going away would be a case of happiness for RT as well :) -Mike