Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp391364pxb; Thu, 14 Jan 2021 08:21:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJy1wKJpr6fhbgE9nBY5YAiXGKCmSnMNmlv3A0DXtgA63AScx8E2kxCvtMOItTeW3NynII3h X-Received: by 2002:a50:bc06:: with SMTP id j6mr6659906edh.235.1610641263407; Thu, 14 Jan 2021 08:21:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610641263; cv=none; d=google.com; s=arc-20160816; b=D2Eizf+w8RFWha3oLIRwtNdrMDDb2ps7FcNlJQ7ACpRnbFOkSH87YWi2A3+1fubJV2 5FERjkITgy3CBdC/OW3OG1KfMYeW7o+3pubYhQA0qParzhP40qP2653az0JvvbHmSxjZ IcVCxd4DQzHrGjw0x9MXXejk8iOzohODh85XncvrWAKG5HVNPkOpC3eBKEpCZY+ScxHm aJIUTFjoXYqf1Y9MZvpbHfQHYqPnc+vQ79Ut3S0zW2yPbmbpLmm3Wd7T4zbfnRPGoYaS H/jAm9eujnOqvdFfHto4mnojtVq+vhicQ8wZgOGueIgsdpqDltC8JOqvQzDvTtwdlbVD wYiQ== 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=eqtQbeVMLh79dOF34C4Z4RZ/eHRYm7fDBoO+wUdjOFQ=; b=aGf0sWg41cgkfNjeBI0hG2oHPMhgUpxaf2OvWVxCebKIWcJzcVWJoI5IMRFSdqM8YR bq5+CplNA6o3a6BTmO28vwkMK6HlNo/U2DHi+iAJuI/4ypeFr7SXIOLB6p1lYhT50kWJ 1Letcwjv7orDXq3buU9PfXGfGIaixFlhCV1oAcreOe0gGHGYBP/WTDkimXgqd1w9y7jn a3dyweMGlQV71zaIguryVnNuolFW0tzdwioqtLbdczEopuIgmtXhKmxgWhQA/W0vq91F e2nwcf6+LjAVlZ+BDscXbg5jJ5dr4RLUwyNZ24qA1ax+yZeR583gcz6QZmjPpJFYWd2b PLvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=H8UGuXTZ; dkim=neutral (no key) header.i=@linutronix.de; 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 t4si2680047edq.607.2021.01.14.08.20.38; Thu, 14 Jan 2021 08:21:03 -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=H8UGuXTZ; dkim=neutral (no key) header.i=@linutronix.de; 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 S1727498AbhANQRt (ORCPT + 99 others); Thu, 14 Jan 2021 11:17:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726342AbhANQRt (ORCPT ); Thu, 14 Jan 2021 11:17: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 24028C0613C1 for ; Thu, 14 Jan 2021 08:17:09 -0800 (PST) Date: Thu, 14 Jan 2021 17:17:07 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1610641027; 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=eqtQbeVMLh79dOF34C4Z4RZ/eHRYm7fDBoO+wUdjOFQ=; b=H8UGuXTZY8e5lYl9xfmE2yteNTRFFfth5mjlr/Ufxfetg1nZS8slBsgHiY2EyxBa9ZpxQ3 NQ1R3i4GgYwl6aK7WydMzkJOdRUmKELLwLbOJCVznBuNI+Tq0juiIH06Xi7Y6tEHiucenh eGpec0HqahCXrdd3avVF/xfQTymqJEyMU+681H4QVZimiZXSpfJ1basSmL0kyQ6Y0QWO0y 6ukJEfjJKgz3OxQ6LVb2kNfcXCulKvBPxnWEmT7mXJ8c0XSMQR2ijW2s3WZnTNwp4d0kNO Lr7vs0l6BlfqmWj2e7vxIOR5JFqPserGl7RrRoQ4k1KgWxkEAmjM8GasS1Q0CQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1610641027; 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=eqtQbeVMLh79dOF34C4Z4RZ/eHRYm7fDBoO+wUdjOFQ=; b=0zWEAw9zSfSoVi7BljSvsSx8knAavkNmAiL37X3TW1M99P9EFCXdWmPc/xAyZRKMuSm/x1 OLSGwSFG9DY3XiBw== From: Sebastian Andrzej Siewior To: Vitaly Wool Cc: Matthew Wilcox , Mike Galbraith , LKML , linux-mm , Barry Song , Minchan Kim , NitinGupta Subject: Re: [PATCH] zsmalloc: do not use bit_spin_lock Message-ID: <20210114161707.wfgbxi2rppoobfo7@linutronix.de> References: <18669bd607ae9efbf4e00e36532c7aa167d0fa12.camel@gmx.de> <20201220002228.38697-1-vitaly.wool@konsulko.com> <20201220011835.GU15600@casper.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-12-20 08:21:37 [+0100], Vitaly Wool wrote: > Not really because bit spinlock leaves preemption disabled. It leaves it disabled for a reason. Now you just spin until the original context gets back on the CPU. On UP with preemption, if the "lock owner" gets preempted, the next lock attempt will lock-up the system. Sebastian