summaryrefslogtreecommitdiff
path: root/sys-fs/zfs-utils/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-01-02 10:34:02 +0000
committerV3n3RiX <venerix@redcorelinux.org>2020-01-02 10:34:02 +0000
commit8332e832f486fabafb59a118b42e03c8440b2968 (patch)
tree5b3b1e221050e839aefb933907102b2eb31ac5f5 /sys-fs/zfs-utils/files
parent7475c99fc8561e533539b7e510293c488c6b2e7c (diff)
sys-fs/zfs-utils : backport fix for https://github.com/zfsonlinux/zfs/issues/9417
Diffstat (limited to 'sys-fs/zfs-utils/files')
-rw-r--r--sys-fs/zfs-utils/files/Use_NMH_WAIT_EXEC_with_call.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/sys-fs/zfs-utils/files/Use_NMH_WAIT_EXEC_with_call.patch b/sys-fs/zfs-utils/files/Use_NMH_WAIT_EXEC_with_call.patch
new file mode 100644
index 00000000..ad612d26
--- /dev/null
+++ b/sys-fs/zfs-utils/files/Use_NMH_WAIT_EXEC_with_call.patch
@@ -0,0 +1,12 @@
+diff -Nur a/module/zfs/vdev_disk.c b/module/zfs/vdev_disk.c
+--- a/module/zfs/vdev_disk.c 2019-09-25 21:44:42.626286618 +0100
++++ b/module/zfs/vdev_disk.c 2020-01-02 10:29:56.356741395 +0000
+@@ -220,7 +220,7 @@
+ char *envp[] = { NULL };
+
+ argv[2] = kmem_asprintf(SET_SCHEDULER_CMD, device, elevator);
+- error = call_usermodehelper(argv[0], argv, envp, UMH_NO_WAIT);
++ error = call_usermodehelper(argv[0], argv, envp, UMH_WAIT_EXEC);
+ strfree(argv[2]);
+ #endif /* HAVE_ELEVATOR_CHANGE */
+ if (error) {