Received: by 2002:a05:7412:4e10:b0:e2:908c:2ebd with SMTP id gb16csp45350rdb; Mon, 6 Nov 2023 23:24:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IGMm+ha0A9LS0Vbq3c8HgSLFCACPlj0KvC/Gc8M25cb3olvZe8VAyjCfHoJoqUkL/q39XOL X-Received: by 2002:a05:6870:6b06:b0:1ea:125f:cffa with SMTP id mt6-20020a0568706b0600b001ea125fcffamr2532942oab.34.1699341854582; Mon, 06 Nov 2023 23:24:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699341854; cv=none; d=google.com; s=arc-20160816; b=O5i4hWMk7GB/n7ib9cHZcW0iIxSpe+kE7kgSefQdWHeM7TgElSlLDSng7AgK9wsPvA iZD+azRgAQKiO5tCNZFRABOJVoeOO1MuhUn+aCRXaJOm5bSierpRSlLyAxIiroS5gMdQ pFzNBDWVwjrWiUDS0JPAenoh0SONuUi9OqvfM7lFxU6QB3RmfMljL4Wqnv7D97SdpEkc Muxc6IFPG/fAzVDVnb7/Fi5RI+LTOsLF/5jaHZPuS7y14NY3SZ1rbh4Wmwm5AgiUvhDw 8GFobxPTUyHcT9wmHGDm5ePKxNVzo2nTUn3VlHvn6VAzHIyEV6QdtE9eqToFIsrzxWfR bbaA== 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:date:dkim-signature; bh=OWNGndg7wx7UsmLs5D+Rq7iYTC+ge2DYU9RXrsS94No=; fh=lMp2zNpI2uSlbsh8m/JktUnfZf4FCN+M/UWamAShIGE=; b=OHUUntQODtMOpTp0dF0u4kABlPqnaDiWLZyLrqbCgJUrZD29r++ebFb0skaOnAg5yN Eui1/l86JVWht/JGzVX/39SvjbFK54Uv6rctwwwPW0zPh7DwmOR3uzcX5UClkesVA5jX 8akwZxehKf0UO/wOoTnLoZ9weNcVZRyRYJHg7kLTiOXs4laPRCQoOyDbjKhiD5xMfakt eWyqE+xCISA46jTgbe4pvjn1Mc1VBXz8GsT3sUryot9Cm3Nz6cAv4QUhqoG93Ngf3fnb L0TUxQS+69vyr91voTRXiA30RqdLDHGxr49bXoKED7J70gcafxqk33m9re9uDIMOLcrG byEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=aER4jRTv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id w8-20020a63f508000000b005bdbcf7c446si1260442pgh.171.2023.11.06.23.24.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Nov 2023 23:24:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=aER4jRTv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 72A2E80CE7FF; Mon, 6 Nov 2023 23:24:12 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233694AbjKGHXw (ORCPT + 99 others); Tue, 7 Nov 2023 02:23:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51056 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233688AbjKGHXp (ORCPT ); Tue, 7 Nov 2023 02:23:45 -0500 Received: from mail-yb1-xb2a.google.com (mail-yb1-xb2a.google.com [IPv6:2607:f8b0:4864:20::b2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70E7910DA for ; Mon, 6 Nov 2023 23:23:41 -0800 (PST) Received: by mail-yb1-xb2a.google.com with SMTP id 3f1490d57ef6-d9c66e70ebdso5447406276.2 for ; Mon, 06 Nov 2023 23:23:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1699341820; x=1699946620; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=OWNGndg7wx7UsmLs5D+Rq7iYTC+ge2DYU9RXrsS94No=; b=aER4jRTvNq1DiEPODWXkjaHRDaYlsm/IbQsKYfxeD8SQJ/74Lyd8VvZkSRx3BN4VX1 ME/yDikGKqE7Co5rMVu+6krJNdqAuXm9CBZssKsWnnIRsPs+ieranJZee5cuuiWpu9B+ VRKR3bIdF4sXYRgjhnyUFKFEhtZHZdidJtXtI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699341820; x=1699946620; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=OWNGndg7wx7UsmLs5D+Rq7iYTC+ge2DYU9RXrsS94No=; b=cM9qaTdmTYsSn8NcWjGRQWB3/WEwYDtOzNw1ZTbyYwILB3jnJdB2XCo7q/tHRqI0GC LbHsVnZ4vjxifq82aBOFpYM4RmlEB0HJUxBsgKZx057PZNO6sNvKHxmyYdjjtl9G5SuV s3hYNkjXq+bZvEcXAzVDGvVWH3RuZzCmTdUJucbneUslntZuUM3DpjnB4x3BK3OlnRqg 03KYiC5Kt1t9gHe+NZn05/5/KwP5dO3kwRZMIX5JQKmpjtUXQEWbTwPtfi5WWhft1/ME aMPjH8nnrVW/ufzdMuqgviPwOxWNlC2joE3Z4w7AXS44oN8U8usSpLrEwmMS0h3DsyEl Xamw== X-Gm-Message-State: AOJu0YwzRGg5mQlhngXkeTz0u2CbUnk96ZEjCfTF0TxDyVA0JKQCpybv KKgyCEYNjugkXSVtMkmRpjouyg== X-Received: by 2002:a25:f828:0:b0:d9a:3d72:bfab with SMTP id u40-20020a25f828000000b00d9a3d72bfabmr27321209ybd.40.1699341820257; Mon, 06 Nov 2023 23:23:40 -0800 (PST) Received: from google.com ([2401:fa00:8f:203:7d66:31e7:94a6:e6a9]) by smtp.gmail.com with ESMTPSA id k125-20020a632483000000b005bd3f34b10dsm825837pgk.24.2023.11.06.23.23.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Nov 2023 23:23:39 -0800 (PST) Date: Tue, 7 Nov 2023 16:23:35 +0900 From: Sergey Senozhatsky To: Vasily Averin Cc: Sergey Senozhatsky , Minchan Kim , "linux-kernel@vger.kernel.org" , linux-block@vger.kernel.org Subject: Re: zram: zram_free_page calls in zram_meta_free Message-ID: <20231107072335.GA11577@google.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FSL_HELO_FAKE,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Mon, 06 Nov 2023 23:24:12 -0800 (PST) On (23/11/06 23:42), Vasily Averin wrote: > The only place where content of zram entry is accessed and even changed without taken zran lock is > zram_free_page() calls from zram_meta_free(). > > It does not look like problem because zram should not have any users at this point, > however I still do not understand why this is required? It's simply pointless. Reset is performed under write init_lock, which is an upper level per-device lock.