-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Block hotplug is accidentally quadratic #2
Comments
nwf
added a commit
to nwf/fstools
that referenced
this issue
Jun 17, 2023
We're given the device basename as a parameter and then search through the cache to find it. Just load the one device, saving the probes for the ones we don't care about. FIXES openwrt#2
nwf
added a commit
to nwf/fstools
that referenced
this issue
Jun 17, 2023
We're given the device basename as a parameter and then search through the cache to find it. Just load the one device, saving the probes for the ones we don't care about. FIXES openwrt#2
nwf
added a commit
to nwf/fstools
that referenced
this issue
Jun 24, 2023
We're given the device basename as a parameter and then search through the cache to find it. Just load the one device, saving the probes for the ones we don't care about. FIXES openwrt#2
In addition to your optimization, isn't it the case that one could Lines 1258 to 1260 in bfe882d
|
Apologies for dropping the ball. Yes, I suspect it is safe to |
nwf
added a commit
to nwf/fstools
that referenced
this issue
Jun 2, 2024
We're given the device basename as a parameter and then search through the cache to find it. Just load the one device, saving the probes for the ones we don't care about. FIXES openwrt#2
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
cache_load
call inmount_action
ignores the device name parameter:fstools/block.c
Line 1256 in bfe882d
As such, each hotplug event (specifically, each
/sbin/block hotplug
invoked via/etc/hotplug.d/block/10-mount
via/sbin/hotplug-call
through the machinations of/etc/hotplug.json
) probes all the block devices named here:fstools/block.c
Lines 580 to 596 in bfe882d
That's rather a lot, if not all, of the block devices on the system, making the total block hotplug sequence accidentally quadratic.
I hope this is the right place to raise this issue, and I've also documented a bit about how I found this over in this forum thread, but if it belongs somewhere else, please let me know.
The text was updated successfully, but these errors were encountered: