]> git.proxmox.com Git - mirror_zfs.git/commit
linux: libzfs: simplify module-loaded check
authorнаб <nabijaczleweli@nabijaczleweli.xyz>
Thu, 14 Apr 2022 21:30:41 +0000 (23:30 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 18 May 2022 19:51:42 +0000 (12:51 -0700)
commit38f4d99f769efbb472ab3c35558700163e4f023c
tree720cef5d371484596b80d22fa1e42ce15c5cdd67
parent89e81bc6adf58ec442ddaa23e629bf888bc55488
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
include/sys/fs/zfs.h
lib/libzfs/os/linux/libzfs_util_os.c
man/man8/zfs.8
man/man8/zpool.8