mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 06:44:00 -04:00
md: record dm-raid gendisk in mddev
Following patch will use gendisk to check if there are normal IO completed or inflight, to fix a problem in mdraid that foreground IO can be starved by background sync IO in later patches. Link: https://lore.kernel.org/linux-raid/20250506124903.2540268-7-yukuai1@huaweicloud.com Signed-off-by: Yu Kuai <yukuai3@huawei.com> Reviewed-by: Xiao Ni <xni@redhat.com>
This commit is contained in:
@@ -404,7 +404,8 @@ struct mddev {
|
||||
* are happening, so run/
|
||||
* takeover/stop are not safe
|
||||
*/
|
||||
struct gendisk *gendisk;
|
||||
struct gendisk *gendisk; /* mdraid gendisk */
|
||||
struct gendisk *dm_gendisk; /* dm-raid gendisk */
|
||||
|
||||
struct kobject kobj;
|
||||
int hold_active;
|
||||
|
||||
Reference in New Issue
Block a user