blockd: make most calls to 'block' asynchronous
authorDaniel Golle <daniel@makrotopia.org>
Fri, 30 Jul 2021 00:01:25 +0000 (01:01 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Fri, 30 Jul 2021 01:05:01 +0000 (02:05 +0100)
commitb7bf18563769e26d24cdace973d09f9c438bbd34
treef34b3eab06bb11efd49a1014ba4d8e793307b920
parentcc63933faedd8d4fcdabb872cf4661ac04fe4ba2
blockd: make most calls to 'block' asynchronous

Don't wait for calls to 'block' to complete unless it's for an
autofs event (which cannot be handled async).
Use uloop for 'mount.ready' notificaion when startup has completed
to avoid blocking in waitpid() while the 'block' process is calling
back via ubus.
This greatly reduces the amount of time blockd needs on boot.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
blockd.c