From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by mail19.linbit.com (LINBIT Mail Daemon) with ESMTP id ADD7C420DE3 for ; Thu, 17 Sep 2020 11:26:25 +0200 (CEST) Date: Thu, 17 Sep 2020 11:25:24 +0200 From: Jan Kara To: Christoph Hellwig Message-ID: <20200917092524.GC7347@quack2.suse.cz> References: <20200910144833.742260-1-hch@lst.de> <20200910144833.742260-11-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200910144833.742260-11-hch@lst.de> Cc: Jens Axboe , linux-raid@vger.kernel.org, Hans de Goede , Minchan Kim , Richard Weinberger , linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, Song Liu , dm-devel@redhat.com, linux-mtd@lists.infradead.org, linux-fsdevel@vger.kernel.org, cgroups@vger.kernel.org, linux-mm@kvack.org, drbd-dev@lists.linbit.com Subject: Re: [Drbd-dev] [PATCH 10/12] bdi: replace BDI_CAP_STABLE_WRITES with a queue and a sb flag 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 Thu 10-09-20 16:48:30, Christoph Hellwig wrote: > The BDI_CAP_STABLE_WRITES is one of the few bits of information in the > backing_dev_info shared between the block drivers and the writeback code. > To help untangling the dependency replace it with a queue flag and a > superblock flag derived from it. This also helps with the case of e.g. > a file system requiring stable writes due to its own checksumming, but > not forcing it on other users of the block device like the swap code. > > One downside is that we can't support the stable_pages_required bdi > attribute in sysfs anymore. It is replaced with a queue attribute, that > can also be made writable for easier testing. ^^^^^^^^^^^^^^^^ is also made For a while I was confused thinking that the new attribute is not writeable but when I checked the code I saw that it is. Not supporting stable_pages_required attribute is not nice but probably it isn't widely used. Maybe the deprecation message can even mention to use the queue attribute? Otherwise the patch looks good to me so feel free to add: Reviewed-by: Jan Kara Honza -- Jan Kara SUSE Labs, CR