diff options
author | Chris Mason <chris.mason@oracle.com> | 2009-08-05 16:36:45 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2009-09-11 13:31:04 -0400 |
commit | 4e3f9c5042b43301d70781aee4a164a20878066b (patch) | |
tree | b2ace00c27553ec2a10958e17d6b90ea264d5886 /fs/btrfs/async-thread.h | |
parent | 40431d6c1288793a682fc6f5e5b5c9d5cac34608 (diff) | |
download | linux-4e3f9c5042b43301d70781aee4a164a20878066b.tar.bz2 |
Btrfs: keep irqs on more often in the worker threads
The btrfs worker thread spinlock was being used both for the
queueing of IO and for the processing of ordered events.
The ordered events never happen from end_io handlers, and so they
don't need to use the _irq version of spinlocks. This adds a
dedicated lock to the ordered lists so they don't have to run
with irqs off.
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/async-thread.h')
-rw-r--r-- | fs/btrfs/async-thread.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/btrfs/async-thread.h b/fs/btrfs/async-thread.h index a562ad8d83aa..fc089b95ec14 100644 --- a/fs/btrfs/async-thread.h +++ b/fs/btrfs/async-thread.h @@ -99,6 +99,9 @@ struct btrfs_workers { /* lock for finding the next worker thread to queue on */ spinlock_t lock; + /* lock for the ordered lists */ + spinlock_t order_lock; + /* extra name for this worker, used for current->name */ char *name; }; |