Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp852991pxb; Thu, 21 Oct 2021 10:41:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzhoba2j3bUYDOO/gjdwF/fjWSm5WQ+2oNZ6McNBFUiy5n+LTTDclFVEd38atyKVSx40yRr X-Received: by 2002:a63:950f:: with SMTP id p15mr5518757pgd.265.1634838089381; Thu, 21 Oct 2021 10:41:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634838089; cv=none; d=google.com; s=arc-20160816; b=TO75ucIy9i0vHfdEwmQBwsn1R9hYLbl5kqU8O0vr9eMqkFbC2BKjaNfL/FXSSjdqYC fxlxvxaLJkuo5mdMbkgrzT49iqFgtotgMAkYb9osjFxTqs9z9jD4H1nW25KIpRk3F8l4 +5s1RzQ8UgJgzTfcsokLb6mKthx7CqsfX2Sxa8bUxwuHj+K4ym8j/VGjij3nDoQAM8nC senmBHO8atg3lkMX+1jradUJWnTERj/cQINF5ZiNPy2rVEkRcniZjGlzh9F/ycgC4Qsc 4OmwQqzYr1v2mBVRw2yE3v0CgVdHujoCZC3U/pXA0wYa5MP2J1y2JcuzdnPrg2UiRpFa bcnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=wbKnAVdwfP+5DNMopkjjBAYPB3ZdYZtPUIqeOJ1noD0=; b=owfywK8g5MLYzHoZbZYoMkkrwcUGVoDW40tTDBF7niQiee7ERXWwddJNL38VJ60DXm hJ9Ti26khaKUaPfVI9wv21BkrJDrDVOcv069Zco0pJ3D9FJqGN58XHv8Oz1Ubmm3l9Oj iNWiv7S+E1uGTEiw7Aie5cb+zAE9DzjtAqOZyYHER0ERbIFuXlpG63K8qZatEiqkXSWk FvbK3teLfnCfcufRYk+T4wWt6yXXn39JPC/YHhjDCP6z8N5rMFIx44gLa9UyJbZPkaQh PecrHBZmfn0TFRAKAMvFvckOFVU8gW5WeFiuRv/NJI2JJSKKwsY+ixDwM+s/mtmbJ9Tl J6zA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=epwZmF4d; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h5si8027038pgp.537.2021.10.21.10.41.16; Thu, 21 Oct 2021 10:41:29 -0700 (PDT) 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=@infradead.org header.s=bombadil.20210309 header.b=epwZmF4d; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231308AbhJURmG (ORCPT + 99 others); Thu, 21 Oct 2021 13:42:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230434AbhJURmF (ORCPT ); Thu, 21 Oct 2021 13:42:05 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00ED4C061570; Thu, 21 Oct 2021 10:39:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=wbKnAVdwfP+5DNMopkjjBAYPB3ZdYZtPUIqeOJ1noD0=; b=epwZmF4d+MaIlCE6iEQH4XN0XG MRQek/8Z/mfw1Fi3PELO7/1kTIi+KfwWKlxNhB3FLf0t6f+bRQIfcSs/4aeqXIGKBgRXKdm3aA5d9 W+CUKyYfueqf1PmmtuayWyOCwsNLpIkBtBei0La5i6rmelE9LmQCrKwHhyMT6svxrN5jo8xa6DZVK tVgvx282U91q1+hId9zcHjm1P3f/kUdYQLTe66H3ckPhTdjTizwSxyE59ijrh44zAHa+R2oGRZ9kc 1Z4YBgbIbn9c6oLs0aXNcWc8+Kh7QkHu3VBEAlbjVeukh2rbs1tisdikGARb78LEN9ldrYsVo77OM QMa4efnA==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1mdc2c-008VfV-It; Thu, 21 Oct 2021 17:39:46 +0000 Date: Thu, 21 Oct 2021 10:39:46 -0700 From: Luis Chamberlain To: Minchan Kim Cc: Ming Lei , Jens Axboe , linux-block@vger.kernel.org, Greg Kroah-Hartman , linux-kernel@vger.kernel.org Subject: Re: [PATCH V2 0/4] zram: fix two races and one zram leak Message-ID: References: <20211020015548.2374568-1-ming.lei@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: Luis Chamberlain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 20, 2021 at 02:40:05PM -0700, Minchan Kim wrote: > On Wed, Oct 20, 2021 at 09:55:44AM +0800, Ming Lei wrote: > > Hello, > > > > Fixes three issues reported by Luis Chamberlain with one simpler approach: > > > > - race between between zram_reset_device() and disksize_store() (1/4) > > > > - zram leak during unloading module, which is one race between resetting > > and removing device (2/4) > > > > - race between zram_remove and disksize_store (3/4) > > > > Also replace replace fsync_bdev with sync_blockdev since no one opens > > it.(4/4) > > > > V2: > > - take another approach to avoid failing of zram_remove() > > - add patch to address race between zram_reset_device() and > > disksize_store() > > > > Thanks for breaking the problems down, Ming. > > To me, the whole patchset looks good to me since each patch solves > the problem step by step and finally fix. > > Luis, do you have any concern of this patchset to solve the cpuhp > problem? (Sorry in advance if I miss some concerns if you raised > in different thread. I'm totally lost). Running tests against this now. Will report back! Luis