Re: [PATCH v2 00/16] block atomic writes

From: John Garry
Date: Thu Dec 14 2023 - 10:46:56 EST


On 14/12/2023 14:37, Christoph Hellwig wrote:
On Wed, Dec 13, 2023 at 04:27:35PM +0000, John Garry wrote:
Are there any patches yet for the change to always use SGLs for transfers
larger than a single PRP?
No.
Here is the WIP version. With that you'd need to make atomic writes
conditional on !ctrl->need_virt_boundary.

Cheers, I gave it a quick spin and on the surface looks ok.

# more /sys/block/nvme0n1/queue/atomic_write_unit_max_bytes
262144
# more /sys/block/nvme0n1/queue/virt_boundary_mask
0