HomeFreeBSD

linux: libzfs: simplify module-loaded check

Description

linux: libzfs: simplify module-loaded check

The short-path is now one access() call,
we always modprobe zfs (ZFS_MODULE_LOADING which doesn't use the libzfs
boolean parsing is gone),
and we use a simple inotify IN_CREATE loop with a timerfd timeout
rather than 10ms kernel-style polling

There's one substantial difference: ZFS_MODULE_TIMEOUT=-1
now means "never give up", rather than "wait 10 minutes"

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #13330

Details

Provenance
наб <nabijaczleweli@nabijaczleweli.xyz>Authored on Apr 14 2022, 9:30 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on May 18 2022, 7:51 PM
Parents
rG89e81bc6adf5: Remove final K&R definitions
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG38f4d99f769e: linux: libzfs: simplify module-loaded check (authored by наб <nabijaczleweli@nabijaczleweli.xyz>).May 18 2022, 7:51 PM