News: 0001580418

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

Linux 6.18 Linear RAID "md-linear" To Support Atomic Writes

([Linux Storage] 6 Hours Ago md-linear + atomic writes)


Building off the work in months prior around [1]Device Mapper atomic write support and related infrastructure, the md-linear target for linear software RAID support will enable atomic write support with the upcoming Linux 6.18 merge window.

Queued in the [2]md-6.18 Git branch of the MDRAID Git tree is enabling atomic writes for the md-linear target.

John Garry of Oracle explained in that commit:

"All the infrastructure has already been plumbed to support this for stacked devices, so just enable the request_queue limits features flag.

A note about chunk sectors for linear arrays: While it is possible to set a chunk sectors param for building a linear array, this is for specifying the granularity at which data sectors from the device are used. It is not the same as a stripe size, like for RAID0.

As such, it is not appropriate to set chunk_sectors request queue limit to the same value, as chunk_sectors request limit is a boundary for which requests cannot straddle.

However, request_queue limit max_hw_sectors is set to chunk sectors, which almost has the same effect as setting chunk_sectors limit."

At this stage with all of the other infrastructure complete, it's just a one-liner setting the atomic writes block feature flag for the md-linear code.



[1] https://www.phoronix.com/news/Device-Mapper-Atomic-Write

[2] https://git.kernel.org/pub/scm/linux/kernel/git/mdraid/linux.git/commit/?h=md-6.18&id=b481e72d24feac15017b579232370aa4b33d4129



phoronix

The FIELD GUIDE to NORTH AMERICAN MALES

SPECIES: Cranial Males
SUBSPECIES: The Hacker (homo computatis)
Plumage:
All clothes have a slightly crumpled look as though they came off the
top of the laundry basket. Style varies with status. Hacker managers
wear gray polyester slacks, pink or pastel shirts with wide collars,
and paisley ties; staff wears cinched-up baggy corduroy pants, white
or blue shirts with button-down collars, and penholder in pocket.
Both managers and staff wear running shoes to work, and a black
plastic digital watch with calculator.