]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
md/raid5: make sure max_sectors is not less than io_opt
authorYu Kuai <yukuai@fnnas.com>
Wed, 14 Jan 2026 17:12:34 +0000 (01:12 +0800)
committerYu Kuai <yukuai@fnnas.com>
Mon, 26 Jan 2026 05:11:51 +0000 (13:11 +0800)
commit4ffe28ed0d7ce7f2f72372cb13152ad37a43ff21
treeb42e560fc9d8c7505bb0b4dc5f89b232f3353687
parent9340a95d489ab5ff3c2d18c78283211b03a4265a
md/raid5: make sure max_sectors is not less than io_opt

Otherwise, even if user issue IO by io_opt, such IO will be split
by max_sectors before they are submitted to raid5. For consequence,
full stripe IO is impossible.

BTW, dm-raid5 is not affected and still have such problem.

Link: https://lore.kernel.org/linux-raid/20260114171241.3043364-7-yukuai@fnnas.com
Signed-off-by: Yu Kuai <yukuai@fnnas.com>
drivers/md/raid5.c
drivers/md/raid5.h