aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/async-thread.h
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-08-15 15:34:16 -0400
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:04:06 -0400
commit5443be45f5cb57d02fd895a0bcaf7e7d9890b1df (patch)
tree88666dedb8b6e3fa0f693d76a11a05cba29ec13e /fs/btrfs/async-thread.h
parent777e6bd706ee40897545463871de5b456fbc46dc (diff)
Btrfs: Give all the worker threads descriptive names
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/async-thread.h')
-rw-r--r--fs/btrfs/async-thread.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/btrfs/async-thread.h b/fs/btrfs/async-thread.h
index 3436ff89759..43e44d115dd 100644
--- a/fs/btrfs/async-thread.h
+++ b/fs/btrfs/async-thread.h
@@ -69,11 +69,14 @@ struct btrfs_workers {
69 69
70 /* lock for finding the next worker thread to queue on */ 70 /* lock for finding the next worker thread to queue on */
71 spinlock_t lock; 71 spinlock_t lock;
72
73 /* extra name for this worker */
74 char *name;
72}; 75};
73 76
74int btrfs_queue_worker(struct btrfs_workers *workers, struct btrfs_work *work); 77int btrfs_queue_worker(struct btrfs_workers *workers, struct btrfs_work *work);
75int btrfs_start_workers(struct btrfs_workers *workers, int num_workers); 78int btrfs_start_workers(struct btrfs_workers *workers, int num_workers);
76int btrfs_stop_workers(struct btrfs_workers *workers); 79int btrfs_stop_workers(struct btrfs_workers *workers);
77void btrfs_init_workers(struct btrfs_workers *workers, int max); 80void btrfs_init_workers(struct btrfs_workers *workers, char *name, int max);
78int btrfs_requeue_work(struct btrfs_work *work); 81int btrfs_requeue_work(struct btrfs_work *work);
79#endif 82#endif