From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com [209.85.167.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 72A5231A04D for ; Mon, 24 Nov 2025 18:05:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764007529; cv=none; b=AJrmESErE1789zixdq23QvMeO8Nk9AnaBI6yCx+4wZR4E0ob86Q3wFovJ/jENATJa17aUZgy+iD+DXO+pSqRZ3R4ntFvTkY0bEqia5eLkpInM5kcCsokW2ji7KfEGC2hsu/IQlouiMujJ1HNjF/Md7EK/rz+J702biqvE3djzs0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764007529; c=relaxed/simple; bh=IL82dwWhdzDDgvYJoZEb5XPhBQ4kX1cjonI0bbduJpY=; h=From:Date:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=aR0K29/qRMkhyanqPFL34nWAGbv+TWVT8Sx8Ws0uYfeer0K4tuvgDtlW4QMm6JIHkZPTczTlrWgf2/2sIz4dgHzOxBGZIWvQAmbMgs1yZ9PiEg9Nwi0uBlFh4cJeRxY0NDpuvHV60VTfGLjfb5ld2Y7hxZLaJbzZN9ErBmxe/jM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=EVuhy/tB; arc=none smtp.client-ip=209.85.167.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="EVuhy/tB" Received: by mail-lf1-f52.google.com with SMTP id 2adb3069b0e04-5969c5af23bso4815319e87.3 for ; Mon, 24 Nov 2025 10:05:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1764007525; x=1764612325; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:date:from:from:to:cc:subject:date:message-id:reply-to; bh=fdHxFN8jM7zLJM0/pC+5lQiWbP33CviN5JVgTeqzJbA=; b=EVuhy/tBI88xKiei2mKSRuIa7U5EAhCSmNGw6w+WXqTmuVuVrD4Xfx8AprioFkbkvy x3ZwM345YwMbVoRHSl31oAef9ZaL29mCnWgJ3i8HP88rJVHsQQTa4yOQgoLyoCtek7Nv +Aqp5VeG+jWxim3UP6DHTnH71EvNZjiBttH1BVXQ9L7x8BN9ARqh9pbwZb3H0HklF6BF K9nBeyxqfVgjAfp9/32FLZmESfKLbI+ywjKc/YFQQKTsh39lBV+el/qbbggGvcrIIPQ6 A6PsF7buS75KsE2adLLtKm3uiwzLtYwiJsHtWTCVYxQKJ2T0TwfqCagS8ymr+zFYCPH+ nQaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764007525; x=1764612325; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:date:from:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=fdHxFN8jM7zLJM0/pC+5lQiWbP33CviN5JVgTeqzJbA=; b=a0aioNP3o8DdqsF8fAWmKjXRQJFvxEkHzb5ZGWhlHG108VEsloT14+nHScWYB2Kj/F b+3XBEBRup/NtrDSCu3kQmB9g81C9RtuOByr/qHDcdLU8Wmt1AUheifzVu93Xm+Mut4B z282ndRSDwQyD9jn40GpoKswrANwTVCIMr7WrouOHd/V0g8pvlUCYmjZzGLYmxcpA2h6 b//+phLXxTt/foDaNl8B4au3VAn6Jod3Qv8wJFrllI4OoxstPI4zmaASBfQgeClOYSlj SmXRNnar+psFrAHHmfrW0tt583t6g1xYXwKJYFJ7ehbd2DVHEOmgzUqBZD4bEVottsMv s7Aw== X-Forwarded-Encrypted: i=1; AJvYcCXi/4e6+9Bh8azttr8Mkf84hE7EWPxAwd2BVMVT/rqfZgZL724E9nx2fo76qO7lYFOfgTPBI4xB0bgbwtE=@vger.kernel.org X-Gm-Message-State: AOJu0YzebCEmfyNo3As3aeOzXiHI/Md9WxE4LfpcWQMxwRE9B1NzPEhx eIVV/BzgSnMq6DNLtlIjQ+itaqxaJEVOnkEyhhF9uB2hD77Fk4EZZBX1 X-Gm-Gg: ASbGncs/gzthjXXtjOVA4jHCuw8Qx+65FzsHYrwSuKYXkJJ5Vi+PWOFFgXTI1Okxf+C 02MLTWB7AfhntGpL8oH3/wBrDbj1ydFSbr0W/GisdLE9kKlFQu9MxTmCMB3G3QwQKQhqG8sbHmb F/2Ak1EzOHtfs5GMeUJaTMrOnwrfPdYjhCT+H+DndjG1xxR96KPrMy6cIsRrWgqqngISSQMOzgN XhLhMsEB/yXmSXFOPHFxd+DP945TTvqeiaWti0fB6ChUh5Ri8sYAyzq2QV4cLMGW3IKyqhEizpt Mei52sYRziZcx9iYfvYDWyKvPEItySV+iWV6kDX7NebK6VnU3nJ4mAJtnDBulv4VAc6uzQ6Bkq1 eocD8nxU4lsqIfTr29TArmtDZQKuqbMhmmuRkZ4jtaenAnefy4j0SUtgOhIDl6jJJgXkav/Epv5 bPDneWkOHmWFXbUQhrbNGAfFqfZS8ZSho8R6q9hA== X-Google-Smtp-Source: AGHT+IEb31cEdYX6Fjl0YQmjke6lqKMQFROt+NUuexZ2I5/D32bv+w6pJ6gQb/xuRuIM+V+OMBdYKQ== X-Received: by 2002:a05:6512:1251:b0:595:7daf:9425 with SMTP id 2adb3069b0e04-596a3ed95d7mr4330824e87.28.1764007525187; Mon, 24 Nov 2025 10:05:25 -0800 (PST) Received: from pc636 (host-95-203-18-135.mobileonline.telia.com. [95.203.18.135]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-5969db75627sm4366210e87.5.2025.11.24.10.05.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Nov 2025 10:05:23 -0800 (PST) From: Uladzislau Rezki X-Google-Original-From: Uladzislau Rezki Date: Mon, 24 Nov 2025 19:05:21 +0100 To: Christoph Hellwig Cc: Uladzislau Rezki , Mikulas Patocka , Benjamin Marzinski , Alasdair Kergon , DMML , Andrew Morton , Mike Snitzer , LKML Subject: Re: [RESEND PATCH] dm-ebs: Mark full buffer dirty even on partial write Message-ID: References: <230baa83-cd79-f232-5fb8-1476115e1ae7@redhat.com> <20251119054635.GB19993@lst.de> <20251120062146.GA29990@lst.de> <20251121072421.GA29754@lst.de> <20251124143044.GA17164@lst.de> <20251124170037.GA28939@lst.de> 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: <20251124170037.GA28939@lst.de> On Mon, Nov 24, 2025 at 06:00:37PM +0100, Christoph Hellwig wrote: > On Mon, Nov 24, 2025 at 04:30:25PM +0100, Uladzislau Rezki wrote: > > > > > > > > > > > Why in dm-ebs we need to offload partial buffer < ubf size? > > > > > > I don't understand this question. What is ubf? What does partial > > > buffer mean in this context, and what does offload mean? > > > > > That was a typo :) i meant ubs - which is underlying block size or number > > of sectors which define the logical block size of the device. In our case > > it is 8K thus is 16 = 512 * 16 = 8K. > > > > Partial buffer means, in context of dm-ebs, that within 8K buffer only > > part of it can be modified. For example, since we emulate 512B to 8K > > from upper layer to the device, a file system can write for example > > just first 4K within 8K window buffer and only that part is marked as > > dirty. > > > > offloading or imposing the data to the lower layer. i.e. writing dirty > > buffers to the device calling submit_io(). > > > > Is it better? It might be that i missed something, feel free to correct. > > I'm still lost what the question is, sorry. > No problem, i am fine with it. Thank you for your input especially explaining the difference between logical_block_size and physical_block_size for nvme device. Appreciate it! -- Uladzislau Rezki