summaryrefslogtreecommitdiff
path: root/linux/kthread.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2023-03-04 22:47:04 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2023-03-04 23:33:25 -0500
commitb0c9ad15f4e5cee60973a8f5f6dc49acfeec9755 (patch)
treeec326791b8b4cc3178150361a7b142b716334780 /linux/kthread.c
parent9fc4b5d675cd6dc0b2503abe95b1c761d8d05abe (diff)
Update bcachefs sources to 171da96d76 bcachefs: Drop some anonymous structs, unions
Diffstat (limited to 'linux/kthread.c')
-rw-r--r--linux/kthread.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/linux/kthread.c b/linux/kthread.c
index 3c7bdb81..134aeeef 100644
--- a/linux/kthread.c
+++ b/linux/kthread.c
@@ -99,6 +99,11 @@ bool kthread_should_stop(void)
return test_bit(KTHREAD_SHOULD_STOP, &current->kthread_flags);
}
+bool kthread_freezable_should_stop(bool *was_frozen)
+{
+ return test_bit(KTHREAD_SHOULD_STOP, &current->kthread_flags);
+}
+
/**
* kthread_stop - stop a thread created by kthread_create().
* @k: thread created by kthread_create().