mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-26 19:19:32 +03:00
config: remove HAVE_SIGNAL_STOP
Sponsored-by: https://despairlabs.com/sponsor/ Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Tony Hutter <hutter2@llnl.gov> Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de> Signed-off-by: Rob Norris <robn@despairlabs.com> Closes #16479
This commit is contained in:
parent
8396c84346
commit
b32b6ac6e5
@ -1,21 +0,0 @@
|
|||||||
dnl #
|
|
||||||
dnl # 4.4 API change
|
|
||||||
dnl # Added kernel_signal_stop
|
|
||||||
dnl #
|
|
||||||
AC_DEFUN([ZFS_AC_KERNEL_SRC_SIGNAL_STOP], [
|
|
||||||
ZFS_LINUX_TEST_SRC([signal_stop], [
|
|
||||||
#include <linux/sched/signal.h>
|
|
||||||
],[
|
|
||||||
kernel_signal_stop();
|
|
||||||
])
|
|
||||||
])
|
|
||||||
|
|
||||||
AC_DEFUN([ZFS_AC_KERNEL_SIGNAL_STOP], [
|
|
||||||
AC_MSG_CHECKING([whether signal_stop() exists])
|
|
||||||
ZFS_LINUX_TEST_RESULT([signal_stop], [
|
|
||||||
AC_MSG_RESULT(yes)
|
|
||||||
AC_DEFINE(HAVE_SIGNAL_STOP, 1, [signal_stop() exists])
|
|
||||||
],[
|
|
||||||
AC_MSG_RESULT(no)
|
|
||||||
])
|
|
||||||
])
|
|
@ -111,7 +111,6 @@ AC_DEFUN([ZFS_AC_KERNEL_TEST_SRC], [
|
|||||||
ZFS_AC_KERNEL_SRC_MKNOD
|
ZFS_AC_KERNEL_SRC_MKNOD
|
||||||
ZFS_AC_KERNEL_SRC_SYMLINK
|
ZFS_AC_KERNEL_SRC_SYMLINK
|
||||||
ZFS_AC_KERNEL_SRC_BIO_MAX_SEGS
|
ZFS_AC_KERNEL_SRC_BIO_MAX_SEGS
|
||||||
ZFS_AC_KERNEL_SRC_SIGNAL_STOP
|
|
||||||
ZFS_AC_KERNEL_SRC_SIGINFO
|
ZFS_AC_KERNEL_SRC_SIGINFO
|
||||||
ZFS_AC_KERNEL_SRC_SYSFS
|
ZFS_AC_KERNEL_SRC_SYSFS
|
||||||
ZFS_AC_KERNEL_SRC_STANDALONE_LINUX_STDARG
|
ZFS_AC_KERNEL_SRC_STANDALONE_LINUX_STDARG
|
||||||
@ -226,7 +225,6 @@ AC_DEFUN([ZFS_AC_KERNEL_TEST_RESULT], [
|
|||||||
ZFS_AC_KERNEL_MKNOD
|
ZFS_AC_KERNEL_MKNOD
|
||||||
ZFS_AC_KERNEL_SYMLINK
|
ZFS_AC_KERNEL_SYMLINK
|
||||||
ZFS_AC_KERNEL_BIO_MAX_SEGS
|
ZFS_AC_KERNEL_BIO_MAX_SEGS
|
||||||
ZFS_AC_KERNEL_SIGNAL_STOP
|
|
||||||
ZFS_AC_KERNEL_SIGINFO
|
ZFS_AC_KERNEL_SIGINFO
|
||||||
ZFS_AC_KERNEL_SYSFS
|
ZFS_AC_KERNEL_SYSFS
|
||||||
ZFS_AC_KERNEL_STANDALONE_LINUX_STDARG
|
ZFS_AC_KERNEL_STANDALONE_LINUX_STDARG
|
||||||
|
@ -175,17 +175,9 @@ issig(void)
|
|||||||
#else
|
#else
|
||||||
if (dequeue_signal(task, &set, &__info) != 0) {
|
if (dequeue_signal(task, &set, &__info) != 0) {
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_SIGNAL_STOP
|
|
||||||
spin_unlock_irq(&task->sighand->siglock);
|
spin_unlock_irq(&task->sighand->siglock);
|
||||||
kernel_signal_stop();
|
kernel_signal_stop();
|
||||||
#else
|
|
||||||
if (current->jobctl & JOBCTL_STOP_DEQUEUED)
|
|
||||||
set_special_state(TASK_STOPPED);
|
|
||||||
|
|
||||||
spin_unlock_irq(¤t->sighand->siglock);
|
|
||||||
|
|
||||||
schedule();
|
|
||||||
#endif
|
|
||||||
/*
|
/*
|
||||||
* Dequeued SIGSTOP/SIGTSTP.
|
* Dequeued SIGSTOP/SIGTSTP.
|
||||||
* Check if process has other singal pending.
|
* Check if process has other singal pending.
|
||||||
|
Loading…
Reference in New Issue
Block a user