]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blobdiff - fs/btrfs/async-thread.h
Btrfs: Allow worker threads to exit when idle
[mirror_ubuntu-hirsute-kernel.git] / fs / btrfs / async-thread.h
index 1b511c109db658ef1d772bb90d77b795f780e63d..a562ad8d83aa06f231e28aa9c0e9f1e694bd33e9 100644 (file)
@@ -73,6 +73,15 @@ struct btrfs_workers {
        /* force completions in the order they were queued */
        int ordered;
 
+       /* more workers required, but in an interrupt handler */
+       int atomic_start_pending;
+
+       /*
+        * are we allowed to sleep while starting workers or are we required
+        * to start them at a later time?
+        */
+       int atomic_worker_start;
+
        /* list with all the work threads.  The workers on the idle thread
         * may be actively servicing jobs, but they haven't yet hit the
         * idle thresh limit above.