mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-10 20:48:12 +00:00
md/raid1: restrict atomic write limits and handle runtime constraints
Restrict the RAID1 atomic write limits by setting chunk_sectors to BARRIER_UNIT_SECTOR_SIZE so that atomic writes never straddle a barrier unit. A bio that passes block-layer validation may still become unserviceable within RAID1 due to bad blocks or write-behind constraints. In the former case, complete the bio with EIO. In the latter case, disable write-behind rather than failing the bio with EIO. Fixes:f2a38abf5f("md/raid1: Atomic write support") Fixes:a4c55c9026("md/raid1: simplify raid1_write_request() error handling") Reviewed-by: John Garry <john.g.garry@oracle.com> Signed-off-by: Abd-Alrhman Masalkhi <abd.masalkhi@gmail.com> Reviewed-by: Yu Kuai <yukuai@fygo.io> Link: https://patch.msgid.link/20260710101521.1714-3-abd.masalkhi@gmail.com Signed-off-by: Yu Kuai <yukuai@fygo.io>
This commit is contained in:
parent
c7d34d17ea
commit
86d801e895
1 changed files with 9 additions and 13 deletions
Loading…
Add table
Add a link
Reference in a new issue