Thread (48 messages) 48 messages, 7 authors, 2023-05-17

Re: [PATCH RFC 06/16] block: Limit atomic writes according to bio and queue limits

From: John Garry <john.g.garry@oracle.com>
Date: 2023-05-04 08:28:52
Also in: linux-block, linux-fsdevel, linux-nvme, linux-scsi, linux-xfs, lkml

On 03/05/2023 19:53, Keith Busch wrote:
On Wed, May 03, 2023 at 06:38:11PM +0000, John Garry wrote:
quoted
+	unsigned int size = (atomic_write_max_segments - 1) *
+				(PAGE_SIZE / SECTOR_SIZE);
Maybe use PAGE_SECTORS instead of recalculating it.
ok, that simplifies it a bit, but I still do have a doubt that the calc 
I use for guaranteed amount of data which can fit in a bio without ever 
requiring splitting to queue limits is correct...

Thanks,
John
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help