diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-03-04 22:47:04 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-03-04 23:33:25 -0500 |
commit | b0c9ad15f4e5cee60973a8f5f6dc49acfeec9755 (patch) | |
tree | ec326791b8b4cc3178150361a7b142b716334780 /linux/kthread.c | |
parent | 9fc4b5d675cd6dc0b2503abe95b1c761d8d05abe (diff) |
Update bcachefs sources to 171da96d76 bcachefs: Drop some anonymous structs, unions
Diffstat (limited to 'linux/kthread.c')
-rw-r--r-- | linux/kthread.c | 5 |
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, ¤t->kthread_flags); } +bool kthread_freezable_should_stop(bool *was_frozen) +{ + return test_bit(KTHREAD_SHOULD_STOP, ¤t->kthread_flags); +} + /** * kthread_stop - stop a thread created by kthread_create(). * @k: thread created by kthread_create(). |