aboutsummaryrefslogtreecommitdiffstats
path: root/module/os/linux/spl/spl-thread.c
diff options
context:
space:
mode:
authorPawel Jakub Dawidek <[email protected]>2024-05-29 10:49:11 -0700
committerGitHub <[email protected]>2024-05-29 10:49:11 -0700
commit01c8efdd59b540eb6ea21e339d2dbd0283095130 (patch)
treee1c39e4dea25100ffaa2e415918503972a7eed92 /module/os/linux/spl/spl-thread.c
parent6b95031f5642f54bab063da84dd4009df2bc0b5e (diff)
Simplify issig().
We always call it twice with JUSTLOOKING and then FORREAL. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Pawel Jakub Dawidek <[email protected]> Closes #16225
Diffstat (limited to 'module/os/linux/spl/spl-thread.c')
-rw-r--r--module/os/linux/spl/spl-thread.c16
1 files changed, 3 insertions, 13 deletions
diff --git a/module/os/linux/spl/spl-thread.c b/module/os/linux/spl/spl-thread.c
index ee3eb4690..dbb8eefa7 100644
--- a/module/os/linux/spl/spl-thread.c
+++ b/module/os/linux/spl/spl-thread.c
@@ -152,26 +152,16 @@ spl_kthread_create(int (*func)(void *), void *data, const char namefmt[], ...)
EXPORT_SYMBOL(spl_kthread_create);
/*
- * The "why" argument indicates the allowable side-effects of the call:
- *
- * FORREAL: Extract the next pending signal from p_sig into p_cursig;
- * stop the process if a stop has been requested or if a traced signal
- * is pending.
- *
- * JUSTLOOKING: Don't stop the process, just indicate whether or not
- * a signal might be pending (FORREAL is needed to tell for sure).
+ * Extract the next pending signal from p_sig into p_cursig; stop the process
+ * if a stop has been requested or if a traced signal is pending.
*/
int
-issig(int why)
+issig(void)
{
- ASSERT(why == FORREAL || why == JUSTLOOKING);
if (!signal_pending(current))
return (0);
- if (why != FORREAL)
- return (1);
-
struct task_struct *task = current;
spl_kernel_siginfo_t __info;
sigset_t set;