Re: [PATCH v2] md/raid1: Fix stack memory use after return in raid1_reshape

From: Yu Kuai
Date: Fri Jun 13 2025 - 05:32:12 EST


Hi,

在 2025/06/12 20:21, Wang Jinchao 写道:
BTW, I feel raid1_reshape can be better coding with following:

And another hint:

The poolinfo can be removed directly, the only other place to use it
is r1buf_pool, and can covert to pass in conf or &conf->raid_disks.

Thanks,
Kuai