diff options
| author | Chris Mason <[email protected]> | 2008-08-15 19:34:16 +0000 |
|---|---|---|
| committer | Chris Mason <[email protected]> | 2008-09-25 15:04:06 +0000 |
| commit | 5443be45f5cb57d02fd895a0bcaf7e7d9890b1df (patch) | |
| tree | 88666dedb8b6e3fa0f693d76a11a05cba29ec13e /fs/btrfs/async-thread.h | |
| parent | Btrfs: Transaction commit: don't use filemap_fdatawait (diff) | |
| download | kernel-5443be45f5cb57d02fd895a0bcaf7e7d9890b1df.tar.gz kernel-5443be45f5cb57d02fd895a0bcaf7e7d9890b1df.zip | |
Btrfs: Give all the worker threads descriptive names
Signed-off-by: Chris Mason <[email protected]>
Diffstat (limited to 'fs/btrfs/async-thread.h')
| -rw-r--r-- | fs/btrfs/async-thread.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/btrfs/async-thread.h b/fs/btrfs/async-thread.h index 3436ff897597..43e44d115dd1 100644 --- a/fs/btrfs/async-thread.h +++ b/fs/btrfs/async-thread.h @@ -69,11 +69,14 @@ struct btrfs_workers { /* lock for finding the next worker thread to queue on */ spinlock_t lock; + + /* extra name for this worker */ + char *name; }; int btrfs_queue_worker(struct btrfs_workers *workers, struct btrfs_work *work); int btrfs_start_workers(struct btrfs_workers *workers, int num_workers); int btrfs_stop_workers(struct btrfs_workers *workers); -void btrfs_init_workers(struct btrfs_workers *workers, int max); +void btrfs_init_workers(struct btrfs_workers *workers, char *name, int max); int btrfs_requeue_work(struct btrfs_work *work); #endif |
