Re: [PATCH V2 1/1] md: add legacy_async_del_gendisk mode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear Xiao,


Am 12.08.25 um 14:20 schrieb Xiao Ni:

On Tue, Aug 12, 2025 at 5:58 PM Paul Menzel <pmenzel@xxxxxxxxxxxxx> wrote:

[…]

Am 12.08.25 um 09:49 schrieb Xiao Ni:
commit 9e59d609763f ("md: call del_gendisk in control path") changes the
async way to sync way of calling del_gendisk. But it breaks mdadm
--assemble command. The assemble command runs like this:
1. create the array
2. stop the array
3. access the sysfs files after stopping

The sync way calls del_gendisk in step2, so all sysfs files are removed.
Now to avoid breaking mdadm assemble command, this patch adds a parameter

… the parameter legacy_async_del_gendisk …

ok

that can be used to choose which way. The default is async way. In future,
we can remove this parameter when users upgrade to mdadm 4.5 which removes
step2.

step 2

ok

Maybe say to first change the default, and then remove it.

I don't follow this. What's the meaning of "to first change the default"?

I mean, after, for example, the next LTS release, change the default of the parameter to false, and then after another LTS release to remove the parameter entirely. Or, seeing that the code is not that vast, leave the parameter even longer. So, not remove the parameter, but first change the default.

[…]


Kind regards,

Paul




[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux