You are not logged in.

#1 2022-09-02 13:19:35

Morta
Member
Registered: 2019-07-07
Posts: 463

block device autoloading is deprecated and will be removed

I have a loop when I shutdown or reboot with this message

block device autoloading is deprecated and will be removed

I found this patch... Is there a possibility that Arch Linux Maintainers change this flag or have a I implement the second patch by hand for my kernel?

https://www.spinics.net/lists/linux-block/msg80356.html

Is this patch ok or is there a other way?

thx

Last edited by Morta (2022-09-02 13:20:00)

Offline

#2 2022-09-02 17:13:29

Morta
Member
Registered: 2019-07-07
Posts: 463

Re: block device autoloading is deprecated and will be removed

With LTS Kernel works

Offline

#3 2022-09-02 18:31:31

loqs
Member
Registered: 2014-03-06
Posts: 15,356

Re: block device autoloading is deprecated and will be removed

The commit you referenced setting the default for BLOCK_LEGACY_AUTOLOAD to y has been applied since 5.18 https://github.com/torvalds/linux/commi … b71f6d7875
Arch disabled  BLOCK_LEGACY_AUTOLOAD for 5.18 which broke mdraid so was re-enabled in https://github.com/archlinux/svntogit-p … 5ceec985de
Edit:
I should note that BLOCK_LEGACY_AUTOLOAD still has the default set to y as of 6.0-rc3.

Last edited by loqs (2022-09-02 18:57:53)

Online

#4 2022-09-04 23:16:58

rokku
Member
Registered: 2022-09-04
Posts: 2

Re: block device autoloading is deprecated and will be removed

On Linux 5.19.6-arch1-1 #1 error still occurs. any advice to fix it?

Last edited by rokku (2022-09-04 23:17:11)

Offline

#5 2022-09-04 23:23:27

Scimmia
Fellow
Registered: 2012-09-01
Posts: 9,565

Re: block device autoloading is deprecated and will be removed

There is no error, ignore it.

Offline

#6 2022-09-05 01:04:36

rokku
Member
Registered: 2022-09-04
Posts: 2

Re: block device autoloading is deprecated and will be removed

But my system stuck in a loop and does not shutdown. i have to use the reset switch.

Offline

#7 2022-09-05 03:34:03

loqs
Member
Registered: 2014-03-06
Posts: 15,356

Re: block device autoloading is deprecated and will be removed

rokku wrote:

But my system stuck in a loop and does not shutdown. i have to use the reset switch.

You could build a kernel with BLOCK_LEGACY_AUTOLOAD unset.
I doubt it would fix your shutdown issue.  If the udev rules has not been fixed then you may have a new issue on booting.

Online

#8 2022-09-06 19:29:46

Morta
Member
Registered: 2019-07-07
Posts: 463

Re: block device autoloading is deprecated and will be removed

A no framebuffer patch and set to BLOCK_LEGACY_AUTOLOAD=n fix the issue. Hope for a solution soon!

Offline

#9 2022-09-07 10:40:25

leomeinel
Member
Registered: 2022-08-01
Posts: 17

Re: block device autoloading is deprecated and will be removed

Is there a way to not use deprecated autoloading while setting up an encrypted raid1 with mdadm and cryptsetup?
With boot partition (luks1) and root (luks2) being encrypted.

Last edited by leomeinel (2022-09-07 10:41:01)

Offline

#10 2022-09-07 10:41:56

Morta
Member
Registered: 2019-07-07
Posts: 463

Re: block device autoloading is deprecated and will be removed

Yes I use RAID 0 with mdadm and it’s works described above

Offline

#11 2022-09-07 13:45:55

leomeinel
Member
Registered: 2022-08-01
Posts: 17

Re: block device autoloading is deprecated and will be removed

Morta wrote:

Yes I use RAID 0 with mdadm and it’s works described above

Okay, thats nice. However it is just a way to suppress the error that doesn't fix the underlying problem.
At least if you consider the deprecated feature to be the problem.

Last edited by leomeinel (2022-09-07 13:46:53)

Offline

#12 2022-09-14 00:42:49

leomeinel
Member
Registered: 2022-08-01
Posts: 17

Re: block device autoloading is deprecated and will be removed

This is now solved with linux 5.19.8.arch1-1 and linux-zen 5.19.8.zen1-1 probably also with the lts and hardened

Offline

#13 2022-09-14 03:45:00

loqs
Member
Registered: 2014-03-06
Posts: 15,356

Re: block device autoloading is deprecated and will be removed

CONFIG_BLOCK_LEGACY_AUTOLOAD=y is still set in the config https://github.com/archlinux/svntogit-p … onfig#L912
The warning message is still present https://github.com/archlinux/linux/blob … dev.c#L748

Online

#14 2022-09-23 17:12:21

leomeinel
Member
Registered: 2022-08-01
Posts: 17

Re: block device autoloading is deprecated and will be removed

@loqs I can confirm. My last conclusion was wrong. The shutdown was just faster but the error messages are still present!

Offline

#15 2022-09-28 16:40:43

loqs
Member
Registered: 2014-03-06
Posts: 15,356

Re: block device autoloading is deprecated and will be removed

I can not see how the message could be connected to a loop on shutdown or reboot.  What exactly do you mean by loop?  Please post the journal for a shutdown or reboot showing the issue.

Online

#16 2022-09-28 17:11:15

Morta
Member
Registered: 2019-07-07
Posts: 463

Re: block device autoloading is deprecated and will be removed

https://abload.de/img/auswahl_03493d14.png

looks like this in a endless queue. In journalctl -b I can't find anything but I can put to ix.io

[morta@5erver ~]$ sudo journalctl -b | curl -F 'f:1=<-' ix.io

http://ix.io/4bIy

Offline

#17 2022-09-30 05:39:59

Morta
Member
Registered: 2019-07-07
Posts: 463

Re: block device autoloading is deprecated and will be removed

Anyone?

Offline

#18 2022-09-30 11:50:20

2ManyDogs
Forum Moderator
Registered: 2012-01-15
Posts: 4,136

Re: block device autoloading is deprecated and will be removed

Morta wrote:

Anyone?

Don't do that. https://wiki.archlinux.org/title/Genera … es#Bumping

Looking at your post history, you have been asked not to bump at least once before. Do not do this again.


How to post. A sincere effort to use modest and proper language and grammar is a sign of respect toward the community.

Offline

#19 Yesterday 21:32:13

loqs
Member
Registered: 2014-03-06
Posts: 15,356

Re: block device autoloading is deprecated and will be removed

From the screenshot something late in shutdown is calling a mount related call repeatedly and every call triggers the deprecation warning until the kernel's rate limit is reached.  The shutdown itself seems very slow / blocked.
https://freedesktop.org/wiki/Software/s … wnproblems

Online

#20 Yesterday 21:34:48

Morta
Member
Registered: 2019-07-07
Posts: 463

Re: block device autoloading is deprecated and will be removed

sudo reboot —force works but I have a NFS Drive mounted and two LVM Raid 0

Offline

#21 Yesterday 21:59:16

loqs
Member
Registered: 2014-03-06
Posts: 15,356

Re: block device autoloading is deprecated and will be removed

If you unmount the NFS mount before shutdown or avoid ever mounting it at boot is there any change?  If not repeat for the LVM mount.  Still no change see my link in post #19 and post the contents of shutdown-log.txt

Online

Board footer

Powered by FluxBB