On Wed, 19 Nov 2025, Christoph Hellwig wrote: > On Tue, Nov 18, 2025 at 06:45:55PM +0100, Mikulas Patocka wrote: > > I changed the patch below, so that it aligns write bios on > > max3(DM_BUFIO_WRITE_ALIGN, bdev_logical_block_size(b->c->bdev), > > bdev_physical_block_size(b->c->bdev)); - so that if physical block size is > > greater than logical block size, the writes are aligned so that the device > > doesn't do read-modify-write. > > That doesn't make any sense whatsoever. The physical block size must > be >= logical block size, and the block enforces that. OK, so I changed it to max(DM_BUFIO_WRITE_ALIGN, bdev_physical_block_size(b->c->bdev)) Mikulas
- Re: [PATCH] dm-bufio: align write boundary on bdev... Uladzislau Rezki
- Re: [PATCH] dm-bufio: align write boundary on ... Mikulas Patocka
- Re: [PATCH] dm-bufio: align write boundary... Uladzislau Rezki
- Re: [PATCH] dm-bufio: align write boun... Uladzislau Rezki
- Re: [PATCH] dm-bufio: align write boundary on bdev_logi... Benjamin Marzinski
- Re: [PATCH] dm-bufio: align write boundary on bdev... Mikulas Patocka
- Re: [PATCH] dm-bufio: align write boundary on ... Uladzislau Rezki
- Re: [PATCH] dm-bufio: align write boundary on bdev... Mikulas Patocka
- Re: [PATCH] dm-bufio: align write boundary on ... Benjamin Marzinski
- Re: [PATCH] dm-bufio: align write boundary on ... Christoph Hellwig
- Re: [PATCH] dm-bufio: align write boundary... Mikulas Patocka
