From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by mail19.linbit.com (LINBIT Mail Daemon) with ESMTP id 3DEFD420634 for ; Thu, 26 Nov 2020 10:59:50 +0100 (CET) Date: Thu, 26 Nov 2020 10:59:48 +0100 From: Christoph Hellwig To: Minchan Kim Message-ID: <20201126095948.GA24035@lst.de> References: <20201116145809.410558-1-hch@lst.de> <20201116145809.410558-61-hch@lst.de> <20201126011107.GA57352@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201126011107.GA57352@google.com> Cc: Justin Sanders , Mike Snitzer , "Michael S. Tsirkin" , Jason Wang , linux-nvme@lists.infradead.org, Song Liu , dm-devel@redhat.com, Christoph Hellwig , drbd-dev@lists.linbit.com, linux-scsi@vger.kernel.org, xen-devel@lists.xenproject.org, Ilya Dryomov , Jack Wang , Konrad Rzeszutek Wilk , Josef Bacik , nbd@other.debian.org, linux-raid@vger.kernel.org, Stefan Hajnoczi , ceph-devel@vger.kernel.org, Jens Axboe , linux-block@vger.kernel.org, "Martin K. Petersen" , Sergey Senozhatsky , linux-fsdevel@vger.kernel.org, Paolo Bonzini , Roger Pau =?iso-8859-1?Q?Monn=E9?= Subject: Re: [Drbd-dev] [PATCH 60/78] zram: remove the claim mechanism List-Id: "*Coordination* of development, patches, contributions -- *Questions* \(even to developers\) go to drbd-user, please." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Wed, Nov 25, 2020 at 05:11:07PM -0800, Minchan Kim wrote: > With this patch, how deal with the race? > > CPU 1 CPU 2 > > hot_remove_store > zram_remove > zram_busy > return -EBUSY > open /dev/zram0 > del_gendisk > zram_reset and destroy Yeah, it looks like zram does not really handle hot unplugging unlike other drivers. So I've dropped this one for now.