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 B625E189906 for ; Tue, 18 Nov 2025 12:46:29 +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=1763469992; cv=none; b=UPLyoqishu0ABxw0NcS8u0+LoAZA5jbj4Jw6NEU5quB7/fkNn4OGbE93MbYRxE1u6JnUTv52oXUV1grOpy9A1MNK3Qdgcsxz0ki+97b4h+dIotswRz6HOOjlyeUOz7XAt0B/s+XiO57F4fy3k/+4LzLsPaUhg8K2hxUxGocjUYg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763469992; c=relaxed/simple; bh=6u9DrSE4YAdfmX/7rVtXhqUtqge8E2c7J0xrUUgyg2Q=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=KgdnfDz36PT1DqzUaGi2nV1wcGH+MNVHqzNnHujtWjfXSmJd/TIwVYYfoV3bKKtsbaL3mSfqtwIHhJ8wIbFDAfjMQkFajyNd7MsopvQ2w+GFmyfZbPSZjwkSaFWrL/4GntmIpiZcG92JhmmJryVFrgAxaw50Qx2x4DyeBgirYZs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (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=pass (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 278FC68AFE; Tue, 18 Nov 2025 13:46:24 +0100 (CET) Date: Tue, 18 Nov 2025 13:46:23 +0100 From: Christoph Hellwig To: Uladzislau Rezki Cc: Mikulas Patocka , Alasdair Kergon , DMML , Andrew Morton , Mike Snitzer , Christoph Hellwig , LKML Subject: Re: [RESEND PATCH] dm-ebs: Mark full buffer dirty even on partial write Message-ID: <20251118124623.GA32286@lst.de> References: <20251117105945.10179-1-urezki@gmail.com> <73556fc8-5fbf-37cb-26b9-7cdb88f69720@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@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: User-Agent: Mutt/1.5.17 (2007-11-01) On Tue, Nov 18, 2025 at 01:40:28PM +0100, Uladzislau Rezki wrote: > > If logical < physical, then the device performs read-modify-write cycle > > when writing blocks that are not aligned at physical block size. > > > This is not true. It depends on your device and specification. If it > can't there is the dm-ebs that does the job. Logical blocks size is the access unit. Physical block size is a hint that the device might be doing RWF and thus be slow. What driver/device are using? Whatever it is doing is completely broken. (that being said aligning things to the physical block size as much as possible is usually still a good optimization, that's why the value exists).