Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3595509pxu; Mon, 30 Nov 2020 06:31:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJx2szZpBSyKq+i9L1ANRFfU36W7Y+MlFWRojGp96+h2XrHSCHHJICArsh6pmQSdocX/49/y X-Received: by 2002:a05:6402:1d15:: with SMTP id dg21mr5067049edb.280.1606746711843; Mon, 30 Nov 2020 06:31:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606746711; cv=none; d=google.com; s=arc-20160816; b=Aye0g6LMWkNyKe7L7XjOUGMvcCHsXAnd4iPXhxjfnoL17fIEOho7QAyroiE6m9OM6u p6BI4P2PspxDdV9n+J5lZ4w0rXyWVjmcePUkvcxdfwu/vMV9Uve2wiaz66JgdDMKMHlT f/qVQKtble1vDuvAaO/iGvA2Cn5E6zAZd3MF1Rs/xgSYTFGf7gz/Z33Mc5nsXvvmRNMn ENyHgIjWrHdmsLoDBxiaQHV+XL0DOxFTSEtfHQ6t4exOB2MwnHTbmLBbUsmA3W/pTmTn a/en2Rseqh72UvxNCute+iNrKYvrwpFwdxsbJ/8hVrhwnv6MlidytNduMAlIklD7eIVH 4jEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:dkim-signature :dkim-signature:date; bh=JhhjWTvHpqu/MrU5zt4R7Kl4BBTN/cdgdM4DvMarTbg=; b=0+ve+j1Na0g6enrNdcBUFn1yUPORKvgcbWUMkj2Ct5CrM2tQ07ZI9Q/JUpBzZn4wPF CpnQP909XYtKCAwSrL8cMmIwLQ6KvgwMvtVSNGlTZM7KHdXQ+X24G3Vzi5i/Sho9nKT9 F5orcn+DkTcEJc+1efh4UIjLNYnnQbg1cx7ivUm8rjJ8yEYWBZCO+Re78Dk4APBf1x/N s4J766bZP+Wo+KXhkgS8f9ZkqZUVBwBDLaJYam+m4Yrc8MG9xFedSBogWS+oOQN1i2uq uTT7yVnaVWnHjIupSNFuUnAroPKU6veuAuNE1NfALPb8bfMC0lJ1mqdc8CelSuwG7TyT FrZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=3dvLW58j; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m1si9961196ejr.515.2020.11.30.06.31.27; Mon, 30 Nov 2020 06:31:51 -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=@linutronix.de header.s=2020 header.b=3dvLW58j; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727084AbgK3O2t (ORCPT + 99 others); Mon, 30 Nov 2020 09:28:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726265AbgK3O2t (ORCPT ); Mon, 30 Nov 2020 09:28:49 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 20E5BC0613D3; Mon, 30 Nov 2020 06:28:09 -0800 (PST) Date: Mon, 30 Nov 2020 15:28:05 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1606746487; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=JhhjWTvHpqu/MrU5zt4R7Kl4BBTN/cdgdM4DvMarTbg=; b=3dvLW58jDbCkGYq836uWzvEPdYeLu0jH6E5hk7RHShRVZ+7SkvPcTilFkwvJbu2BaLTuMp Pr+7YydW9/vzPIgCKggYBt3FxJEeIpXUKVjo0U+ipmOSNO9ynEgmps5L4HVualzv/Y2q9W 67eQcxAKdgzDIGAJLkIY+JDj+QgXAOoIEyaLxb3kGLCbW3C/AkGizMonJmJW3QvAxxLDoP YaXesoUGXuFlnAjT87gG99b3uqrJ1G6bwDkLpT+kVD+/LOsdJHxMwCL7cvX6c0yPxoWsf4 XRsu0nFrrdKRfo7djQEzo2pftCFMmRf/g0qG0yHnJpMvgLyDzyoJ77UWRKR93g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1606746487; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=JhhjWTvHpqu/MrU5zt4R7Kl4BBTN/cdgdM4DvMarTbg=; b=y/LNifvj+o9uDsEcVQl+oFz0n0bGiYJRO2oE3oIG0FXzRZrkVMZLyBO8qYjNGl9QPWw7W9 UTVM58CIn1QKsRDg== From: Sebastian Andrzej Siewior To: Oleksandr Natalenko Cc: Mike Galbraith , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Andrew Morton , Steven Rostedt , Thomas Gleixner , linux-rt-users@vger.kernel.org Subject: Re: scheduling while atomic in z3fold Message-ID: <20201130142805.ah46i3gfazcdlujj@linutronix.de> References: <20201128140924.iyqr2h52z2olt6zb@spock.localdomain> <20201128142723.zik6d5skvt3uwu5f@spock.localdomain> <15171df044b167351e7f6a688aabd71bade9ae2a.camel@gmx.de> <79ee43026efe5aaa560953ea8fe29a826ac4e855.camel@gmx.de> <20201129112922.db53kmtpu76xxukj@spock.localdomain> <90c4857c53b657147bfb71a281ece9839b0373c2.camel@gmx.de> <20201130132014.mlvxeyiub3fpwyw7@linutronix.de> <20201130135322.zi7moa57ajbdvfpy@spock.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20201130135322.zi7moa57ajbdvfpy@spock.localdomain> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-11-30 14:53:22 [+0100], Oleksandr Natalenko wrote: > > diff --git a/mm/zswap.c b/mm/zswap.c > > index 78a20f7b00f2c..b24f761b9241c 100644 > > --- a/mm/zswap.c > > +++ b/mm/zswap.c > > @@ -394,7 +394,9 @@ struct zswap_comp { > > u8 *dstmem; > > }; > > > > -static DEFINE_PER_CPU(struct zswap_comp, zswap_comp); > > +static DEFINE_PER_CPU(struct zswap_comp, zswap_comp) = { > > + .lock = INIT_LOCAL_LOCK(lock), > > Is it a residue? It as been added on purpose. Sebastian