diff options
Diffstat (limited to 'fs/btrfs/async-thread.h')
-rw-r--r-- | fs/btrfs/async-thread.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/fs/btrfs/async-thread.h b/fs/btrfs/async-thread.h index 43e44d115dd1..4ec9a2ee0f9d 100644 --- a/fs/btrfs/async-thread.h +++ b/fs/btrfs/async-thread.h | |||
@@ -63,14 +63,17 @@ struct btrfs_workers { | |||
63 | /* once a worker has this many requests or fewer, it is idle */ | 63 | /* once a worker has this many requests or fewer, it is idle */ |
64 | int idle_thresh; | 64 | int idle_thresh; |
65 | 65 | ||
66 | /* list with all the work threads */ | 66 | /* list with all the work threads. The workers on the idle thread |
67 | * may be actively servicing jobs, but they haven't yet hit the | ||
68 | * idle thresh limit above. | ||
69 | */ | ||
67 | struct list_head worker_list; | 70 | struct list_head worker_list; |
68 | struct list_head idle_list; | 71 | struct list_head idle_list; |
69 | 72 | ||
70 | /* lock for finding the next worker thread to queue on */ | 73 | /* lock for finding the next worker thread to queue on */ |
71 | spinlock_t lock; | 74 | spinlock_t lock; |
72 | 75 | ||
73 | /* extra name for this worker */ | 76 | /* extra name for this worker, used for current->name */ |
74 | char *name; | 77 | char *name; |
75 | }; | 78 | }; |
76 | 79 | ||