Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2798081pxu; Sat, 19 Dec 2020 02:29:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJxpiW5aiT40MUTvjuAs5kWwnNYJ8fITeGR97GiDOHYzWAyLK/hQ/06ha1eOvpn9d7zk68Yp X-Received: by 2002:aa7:c84c:: with SMTP id g12mr8124244edt.193.1608373785434; Sat, 19 Dec 2020 02:29:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608373785; cv=none; d=google.com; s=arc-20160816; b=TTKCuH8CgKYtH0RHHKV85MP/pby3O+p7xfkd++nDJqFvtN3+lC+vuQONY5BIWEY312 m+1RGFOuDVLlAZlnrBngyi1bxw7fleNHp7+/IccDQEIWnTvpjDqF8mm0yOz2vTFkL2V/ 1BAxYo9Tk2dP6k3x5itGH76QokwpbrQn+qm4uAiXJBZRSVR/oEC+7zhVtzCQQLMTEIAO JsM3eRUk2x7RJCionZJAnXPeO9m1XLbcTmrZ71oge1lyl2/LBPbjmvBxagKDaDBv6BrB em/vaRLmSWKU5HIeq+cGDg3Pi8PNUoOQVio9TcT47brvnxMJYte6eVM36tnNPbsMrZOA 6yzA== 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=O+AmaTxGhJSW5zL7DDant0QadbLCb1iKpfYKu5J9fOw=; b=fZxU+ysER4ZF6K4jl+1sIGKzYi8+HI9G4+PjrrVfJmdgvmtnJaNagJHCwpO/rensyM hvb8qZevQHdKTc18jXNA+IJXSJJ2nCG/zRxGKp5j3dPQNI2F2wR3r37kkZUBeHA+e4yv eFm2reBIdSersqFv1K0X9QiE4a+He4K0vJBFVeo+LYf+HtMFsJP3Qx6I2y8a7K8nRdus nul1i2jYPwikXpTqAEBrBtp/7rx7DTCg1YpIDeX+VVIB7AZ1ZROiWbZxtekxYVFWpulA nq5jP0c9BzEP/GMW1gX4BYV2jXz9rpRaGLTCdM29XLrM2mYCBBQGK/XE5SS5huwrgVjh MLmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=XGI0ANM6; 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 se25si6039567ejb.82.2020.12.19.02.29.21; Sat, 19 Dec 2020 02:29:45 -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=XGI0ANM6; 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 S1726464AbgLSK2w (ORCPT + 99 others); Sat, 19 Dec 2020 05:28:52 -0500 Received: from mout.gmx.net ([212.227.17.20]:46007 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726439AbgLSK2w (ORCPT ); Sat, 19 Dec 2020 05:28:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1608373622; bh=Uup18DtdpxUG00UIwFBlOlG16e821LeWTjq7JYouQ0U=; h=X-UI-Sender-Class:Subject:From:To:Cc:Date:In-Reply-To:References; b=XGI0ANM6WR6I821FwRSA+h3NYTbXQHEax6Q9cDbjN4T3N4UiWbw2wDb6f9gEyUE7e VjEA9EIsYGluSifzqTYVyiZvirxO0DEe8mFFGP78ITS55uf8v52EDSdsBWx+/5+mXC wDJhR4RpMiv5KqwqImAHqLMlv7tgVirFdLjdDMqQ= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from homer.fritz.box ([185.221.150.14]) by mail.gmx.com (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MYNNy-1kds6m0q6k-00VQED; Sat, 19 Dec 2020 11:27:02 +0100 Message-ID: <6946d6e798866276f0d635f219cdd4ad05156351.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:27:00 +0100 In-Reply-To: References: 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:j0AiefRXZcSVfA5RaK4B6RVZ3hsyTiR/pq1/qisinIm89qxRA6f ozeYbohZaEne2CMg3bzBMta6UL08iHoLaro8yQQ9DzHxJeekckFHJ5yNN6bIOVuVjCKv093 x1fAPRB0mX8IrEbntvft5gwHK40h2dHpwWndU/bdOhXOQfeUNEDShFMUDidEJmHFrfQBdOS 852nTxpStHw479ISvvsyg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:3Bzr+CNfzpI=:BUvt7sW0s8jkhE2IABLZCm lR3jrnlA2VCjw58KKPJNrGkgzfGYCUeSY+K0/nU7+MpFlm/Fwrqw2ZPMVjbpHxQXZzPeF1CyB hs6VYBJK3BmPubt+iE0CYb+2Z/rhGc9vdBeWZU/CFpTHwzV437FkkOec4M/w6hQdO5w3M63G5 alJGbso0vAumRIbZuva/8PSPwNJWgDnJGkU4duV/FCkhM/CQOmLgEFKg7EfwXO73SkIwduU+l eu7S6iSNEehd67N+meHSGE/LmfKAkhBYfXDwDX8OI/5Ot+IbXrpK6WWnUn8u/6ARPSCIA7f87 TJIoSCY28Ucan9Pmuua9WG+lr7+vaMlNlq6whhuQfi3OK08mNfAyoTgsyHyf7FTsx+MopZNw+ 9LESQzcB1K3rdrei5ygd2yLXVpYgjwhDmmtrMITQtH/nEcD0jb+wCkZAf6C2qwMCH+Dp43utx EMi4VQQFNy9TKsPeQhAJJiwscTsZ/htwqteDZS556gnrkvsOkL3CbQoGidnM6fDEpX/rv+KKg wmu4LMU4Licb1gmig0PSYSVs0P57kDH9ySfeiZ0tfNAQH49+N19PA7kTvDLAEviVxb0GJ7d87 N2o9lCMgEnUlTtXhFhPlAmssOpYKWA2sIC8HAVE7DVNL0tv8U1WSvqbed3DcUrojr+ThztRpe vahmyKzceEMKG4CZ6sR4BTYRewQI5yQVOWrp3BtkGjaJSweexR+Q1iqRZ66wNMMtGbnMYolrK EtvBlxcJh4bHre6gYWXxx6fEHjlQQBEPoL5YXS6btfjaGd2StkL2TjlSJIUirmuVWk29cxi7H +fT+YYulT4CQSZ+sFkbB7ACT4UlH9oBPPSNNL+dR5ZRA2GLxz3FZ559/6yO9HLPY26oGWPgbU w5zVodvWWoLJoCQbsdvQ== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 2020-12-19 at 11:20 +0100, Vitaly Wool wrote: > Hi Mike, > > On Sat, Dec 19, 2020 at 11:12 AM Mike Galbraith wrote: > > > > (mailer partially munged formatting? resend) > > > > mm/zswap: fix zswap_frontswap_load() vs zsmalloc::map/unmap() might_sl= eep() splat > > > > zsmalloc map/unmap methods use preemption disabling bit spinlocks. Ta= ke the > > mutex outside of pool map/unmap methods in zswap_frontswap_load() as i= s done > > in zswap_frontswap_store(). > > oh wait... So is zsmalloc taking a spin lock in its map callback and > releasing it only in unmap? In this case, I would rather keep zswap as > is, mark zsmalloc as RT unsafe and have zsmalloc maintainer fix it. The kernel that generated that splat was NOT an RT kernel, it was plain master.today with a PREEMPT config. -Mike