linux-block.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH RFC md-6.14] md: reintroduce md-linear
       [not found] <20250102112841.1227111-1-yukuai1@huaweicloud.com>
@ 2025-01-07 17:24 ` Mike Snitzer
  2025-01-07 20:34   ` RIc Wheeler
  0 siblings, 1 reply; 5+ messages in thread
From: Mike Snitzer @ 2025-01-07 17:24 UTC (permalink / raw)
  To: Yu Kuai
  Cc: song, yukuai3, thetanix, colyli, linux-kernel, linux-raid,
	yi.zhang, yangerkun, dm-devel, axboe, linux-block

On Thu, Jan 02, 2025 at 07:28:41PM +0800, Yu Kuai wrote:
> From: Yu Kuai <yukuai3@huawei.com>
> 
> THe md-linear is removed by commit 849d18e27be9 ("md: Remove deprecated
> CONFIG_MD_LINEAR") because it has been marked as deprecated for a long
> time.
> 
> However, md-linear is used widely for underlying disks with different size,
> sadly we didn't know this until now, and it's true useful to create
> partitions and assemble multiple raid and then append one to the other.
> 
> People have to use dm-linear in this case now, however, they will prefer
> to minimize the number of involved modules.
> 
> Signed-off-by: Yu Kuai <yukuai3@huawei.com>

I agree with reinstating md-linear.  If/when we do remove md-linear
(again) we first need a seamless upgrade/conversion option (e.g. mdadm
updated to use dm-linear in the backend instead of md-linear).

This patch's header should probably also have this Fixes tag (unclear
if linux-stable would pick it up but it really is a regression given
there was no upgrade path offered to md-linear users):

Fixes: 849d18e27be9 md: Remove deprecated CONFIG_MD_LINEAR

Acked-by: Mike Snitzer <snitzer@kernel.org>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH RFC md-6.14] md: reintroduce md-linear
  2025-01-07 17:24 ` [PATCH RFC md-6.14] md: reintroduce md-linear Mike Snitzer
@ 2025-01-07 20:34   ` RIc Wheeler
  2025-01-07 23:09     ` Song Liu
  0 siblings, 1 reply; 5+ messages in thread
From: RIc Wheeler @ 2025-01-07 20:34 UTC (permalink / raw)
  To: Mike Snitzer, Yu Kuai
  Cc: song, yukuai3, thetanix, colyli, linux-kernel, linux-raid,
	yi.zhang, yangerkun, dm-devel, axboe, linux-block


On 1/7/25 12:24 PM, Mike Snitzer wrote:
> On Thu, Jan 02, 2025 at 07:28:41PM +0800, Yu Kuai wrote:
>> From: Yu Kuai <yukuai3@huawei.com>
>>
>> THe md-linear is removed by commit 849d18e27be9 ("md: Remove deprecated
>> CONFIG_MD_LINEAR") because it has been marked as deprecated for a long
>> time.
>>
>> However, md-linear is used widely for underlying disks with different size,
>> sadly we didn't know this until now, and it's true useful to create
>> partitions and assemble multiple raid and then append one to the other.
>>
>> People have to use dm-linear in this case now, however, they will prefer
>> to minimize the number of involved modules.
>>
>> Signed-off-by: Yu Kuai <yukuai3@huawei.com>
> I agree with reinstating md-linear.  If/when we do remove md-linear
> (again) we first need a seamless upgrade/conversion option (e.g. mdadm
> updated to use dm-linear in the backend instead of md-linear).


Agree with the need for an upgrade/conversion path.

>
> This patch's header should probably also have this Fixes tag (unclear
> if linux-stable would pick it up but it really is a regression given
> there was no upgrade path offered to md-linear users):
>
> Fixes: 849d18e27be9 md: Remove deprecated CONFIG_MD_LINEAR
>
> Acked-by: Mike Snitzer <snitzer@kernel.org>
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH RFC md-6.14] md: reintroduce md-linear
  2025-01-07 20:34   ` RIc Wheeler
@ 2025-01-07 23:09     ` Song Liu
  2025-01-08 16:13       ` Mike Snitzer
  0 siblings, 1 reply; 5+ messages in thread
From: Song Liu @ 2025-01-07 23:09 UTC (permalink / raw)
  To: RIc Wheeler
  Cc: Mike Snitzer, Yu Kuai, yukuai3, thetanix, colyli, linux-kernel,
	linux-raid, yi.zhang, yangerkun, dm-devel, axboe, linux-block

On Tue, Jan 7, 2025 at 12:34 PM RIc Wheeler <ricwheeler@gmail.com> wrote:
>
>
> On 1/7/25 12:24 PM, Mike Snitzer wrote:
> > On Thu, Jan 02, 2025 at 07:28:41PM +0800, Yu Kuai wrote:
> >> From: Yu Kuai <yukuai3@huawei.com>
> >>
> >> THe md-linear is removed by commit 849d18e27be9 ("md: Remove deprecated
> >> CONFIG_MD_LINEAR") because it has been marked as deprecated for a long
> >> time.
> >>
> >> However, md-linear is used widely for underlying disks with different size,
> >> sadly we didn't know this until now, and it's true useful to create
> >> partitions and assemble multiple raid and then append one to the other.
> >>
> >> People have to use dm-linear in this case now, however, they will prefer
> >> to minimize the number of involved modules.
> >>
> >> Signed-off-by: Yu Kuai <yukuai3@huawei.com>
> > I agree with reinstating md-linear.  If/when we do remove md-linear
> > (again) we first need a seamless upgrade/conversion option (e.g. mdadm
> > updated to use dm-linear in the backend instead of md-linear).
>
>
> Agree with the need for an upgrade/conversion path.
>
> >
> > This patch's header should probably also have this Fixes tag (unclear
> > if linux-stable would pick it up but it really is a regression given
> > there was no upgrade path offered to md-linear users):
> >
> > Fixes: 849d18e27be9 md: Remove deprecated CONFIG_MD_LINEAR
> >
> > Acked-by: Mike Snitzer <snitzer@kernel.org>

Thanks all for feedback on this move. I agree that reinstating
md-linear is the right move for now.

Yu Kuai,

It appears to me that the path doesn't apply cleanly on the md-6.14
branch:

Applying: md: reintroduce md-linear
error: patch failed: drivers/md/Makefile:29
error: drivers/md/Makefile: patch does not apply
Patch failed at 0001 md: reintroduce md-linear
hint: Use 'git am --show-current-patch=diff' to see the failed patch
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".

Please rebase and resend the patch.

Thanks,
Song

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH RFC md-6.14] md: reintroduce md-linear
  2025-01-07 23:09     ` Song Liu
@ 2025-01-08 16:13       ` Mike Snitzer
  2025-01-08 21:42         ` Song Liu
  0 siblings, 1 reply; 5+ messages in thread
From: Mike Snitzer @ 2025-01-08 16:13 UTC (permalink / raw)
  To: Song Liu
  Cc: RIc Wheeler, Yu Kuai, yukuai3, thetanix, colyli, linux-kernel,
	linux-raid, yi.zhang, yangerkun, dm-devel, axboe, linux-block

On Tue, Jan 07, 2025 at 03:09:00PM -0800, Song Liu wrote:
> On Tue, Jan 7, 2025 at 12:34 PM RIc Wheeler <ricwheeler@gmail.com> wrote:
> >
> >
> > On 1/7/25 12:24 PM, Mike Snitzer wrote:
> > > On Thu, Jan 02, 2025 at 07:28:41PM +0800, Yu Kuai wrote:
> > >> From: Yu Kuai <yukuai3@huawei.com>
> > >>
> > >> THe md-linear is removed by commit 849d18e27be9 ("md: Remove deprecated
> > >> CONFIG_MD_LINEAR") because it has been marked as deprecated for a long
> > >> time.
> > >>
> > >> However, md-linear is used widely for underlying disks with different size,
> > >> sadly we didn't know this until now, and it's true useful to create
> > >> partitions and assemble multiple raid and then append one to the other.
> > >>
> > >> People have to use dm-linear in this case now, however, they will prefer
> > >> to minimize the number of involved modules.
> > >>
> > >> Signed-off-by: Yu Kuai <yukuai3@huawei.com>
> > > I agree with reinstating md-linear.  If/when we do remove md-linear
> > > (again) we first need a seamless upgrade/conversion option (e.g. mdadm
> > > updated to use dm-linear in the backend instead of md-linear).
> >
> >
> > Agree with the need for an upgrade/conversion path.
> >
> > >
> > > This patch's header should probably also have this Fixes tag (unclear
> > > if linux-stable would pick it up but it really is a regression given
> > > there was no upgrade path offered to md-linear users):
> > >
> > > Fixes: 849d18e27be9 md: Remove deprecated CONFIG_MD_LINEAR
> > >
> > > Acked-by: Mike Snitzer <snitzer@kernel.org>
> 
> Thanks all for feedback on this move. I agree that reinstating
> md-linear is the right move for now.
> 
> Yu Kuai,
> 
> It appears to me that the path doesn't apply cleanly on the md-6.14
> branch:
> 
> Applying: md: reintroduce md-linear
> error: patch failed: drivers/md/Makefile:29
> error: drivers/md/Makefile: patch does not apply
> Patch failed at 0001 md: reintroduce md-linear
> hint: Use 'git am --show-current-patch=diff' to see the failed patch
> When you have resolved this problem, run "git am --continue".
> If you prefer to skip this patch, run "git am --skip" instead.
> To restore the original branch and stop patching, run "git am --abort".
> 
> Please rebase and resend the patch.
> 
> Thanks,
> Song

Um, sorry but waiting for a resubmission of a revert due to Makefile
difference is a needless stall.  You'd do well to fixup the Makefile,
compile test and also review for any intervening MD (or other kernel)
API changes since the code was removed from the tree.

Mike

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH RFC md-6.14] md: reintroduce md-linear
  2025-01-08 16:13       ` Mike Snitzer
@ 2025-01-08 21:42         ` Song Liu
  0 siblings, 0 replies; 5+ messages in thread
From: Song Liu @ 2025-01-08 21:42 UTC (permalink / raw)
  To: Mike Snitzer
  Cc: RIc Wheeler, Yu Kuai, yukuai3, thetanix, colyli, linux-kernel,
	linux-raid, yi.zhang, yangerkun, dm-devel, axboe, linux-block

On Wed, Jan 8, 2025 at 8:13 AM Mike Snitzer <snitzer@kernel.org> wrote:
>
> On Tue, Jan 07, 2025 at 03:09:00PM -0800, Song Liu wrote:
> > On Tue, Jan 7, 2025 at 12:34 PM RIc Wheeler <ricwheeler@gmail.com> wrote:
[...]
> >
> > It appears to me that the path doesn't apply cleanly on the md-6.14
> > branch:
> >
> > Applying: md: reintroduce md-linear
> > error: patch failed: drivers/md/Makefile:29
> > error: drivers/md/Makefile: patch does not apply
> > Patch failed at 0001 md: reintroduce md-linear
> > hint: Use 'git am --show-current-patch=diff' to see the failed patch
> > When you have resolved this problem, run "git am --continue".
> > If you prefer to skip this patch, run "git am --skip" instead.
> > To restore the original branch and stop patching, run "git am --abort".
> >
> > Please rebase and resend the patch.
> >
> > Thanks,
> > Song
>
> Um, sorry but waiting for a resubmission of a revert due to Makefile
> difference is a needless stall.  You'd do well to fixup the Makefile,
> compile test and also review for any intervening MD (or other kernel)
> API changes since the code was removed from the tree.

OK. Fixed Makefile and applied to md-6.14.

Thanks,
Song

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-01-08 21:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20250102112841.1227111-1-yukuai1@huaweicloud.com>
2025-01-07 17:24 ` [PATCH RFC md-6.14] md: reintroduce md-linear Mike Snitzer
2025-01-07 20:34   ` RIc Wheeler
2025-01-07 23:09     ` Song Liu
2025-01-08 16:13       ` Mike Snitzer
2025-01-08 21:42         ` Song Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).