diff options
author | Chris Mason <chris.mason@oracle.com> | 2008-06-11 20:21:24 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-09-25 11:04:03 -0400 |
commit | 35d8ba66294ff2a53c17337a1aa1ff6739492f41 (patch) | |
tree | 40297c7917bb0425e76030e54418a934b1225299 /fs/btrfs/super.c | |
parent | d05e5a4dad985acc938e62d9752c813647dedd9d (diff) | |
download | linux-35d8ba66294ff2a53c17337a1aa1ff6739492f41.tar.gz linux-35d8ba66294ff2a53c17337a1aa1ff6739492f41.tar.bz2 linux-35d8ba66294ff2a53c17337a1aa1ff6739492f41.zip |
Btrfs: Worker thread optimizations
This changes the worker thread pool to maintain a list of idle threads,
avoiding a complex search for a good thread to wake up.
Threads have two states:
idle - we try to reuse the last thread used in hopes of improving the batching
ratios
busy - each time a new work item is added to a busy task, the task is
rotated to the end of the line.
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/super.c')
0 files changed, 0 insertions, 0 deletions