From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D02C7B65D; Mon, 5 Feb 2024 05:12:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.95.11.211 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707109933; cv=none; b=nDFOqYV79UpprFudtvXftgFjjtIPAj8P/zS49tODmAJQQvQU7mVYuCjeTHm6DC9sbnk9FoEqvA4mI7XJ6iBm8sQ/QPVPwl9tnp8Y6u3sWHETcfcpjeTbm1b8eL0ES9500p6TzvsaQNs8HSBOJf6jnP3VrAn8th6KJ/YTN/YMDAk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707109933; c=relaxed/simple; bh=uLratuBBiUELGGDELEjOgLcI+7TP/lMITd3VOcI/bow=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=AT8PGEko0Nmv66KdxbCXsx5WGc93iiyXGmFPr5jCG+F3dMgqhkBghkr4phSKpT9aqZ3Q8Bho9pOjNKpaNaT0Fh4XhplaPMlfpRM9yJJ28BzT5q/8ElFg+MqkLOf7W3Q9IOlsGISR1IbwIOI5mV5brZXr/PhJDa3NUbMGnEwA6Hg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de; spf=pass smtp.mailfrom=lst.de; arc=none smtp.client-ip=213.95.11.211 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lst.de Received: by verein.lst.de (Postfix, from userid 2407) id 0DAB2227AA8; Mon, 5 Feb 2024 06:12:00 +0100 (CET) Date: Mon, 5 Feb 2024 06:11:59 +0100 From: Christoph Hellwig To: Damien Le Moal Cc: Ming Lei , linux-block@vger.kernel.org, Jens Axboe , linux-scsi@vger.kernel.org, "Martin K . Petersen" , dm-devel@lists.linux.dev, Mike Snitzer , Christoph Hellwig Subject: Re: [PATCH 06/26] block: Introduce zone write plugging Message-ID: <20240205051159.GA17817@lst.de> References: <20240202073104.2418230-1-dlemoal@kernel.org> <20240202073104.2418230-7-dlemoal@kernel.org> <58fa0123-e884-4321-9b9b-8575cc7b4e1d@kernel.org> Precedence: bulk X-Mailing-List: linux-scsi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <58fa0123-e884-4321-9b9b-8575cc7b4e1d@kernel.org> User-Agent: Mutt/1.5.17 (2007-11-01) On Mon, Feb 05, 2024 at 11:41:04AM +0900, Damien Le Moal wrote: > > I think only queue re-configuration(blk_revalidate_zone) requires the > > queue usage counter. Otherwise, bdev open()/close() should work just > > fine. > > I want to check FS case though. No clear if mounting FS that supports zone > (btrfs) also uses bdev open ? Every file system opens the block device. But we don't just need the block device to be open, but we also need the block limits to not change, and the only way to do that is to hold a q_usage_counter reference.