diff options
author | Chris Mason <chris.mason@oracle.com> | 2009-01-16 11:58:19 -0500 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2009-01-16 11:58:19 -0500 |
commit | 1d9e2ae949411c2f329f30e01ea0355cd02c4296 (patch) | |
tree | 64287747fdbb1641052d8ec146c8997c3797bc48 /fs/btrfs/ref-cache.h | |
parent | e293e97e363e419d8a3628a927321e3f75206a0b (diff) |
Btrfs: Clear the device->running_pending flag before bailing on congestion
Btrfs maintains a queue of async bio submissions so the checksumming
threads don't have to wait on get_request_wait. In order to avoid
extra wakeups, this code has a running_pending flag that is used
to tell new submissions they don't need to wake the thread.
When the threads notice congestion on a single device, they
may decide to requeue the job and move on to other devices. This
makes sure the running_pending flag is cleared before the
job is requeued.
It should help avoid IO stalls by making sure the task is woken up
when new submissions come in.
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/ref-cache.h')
0 files changed, 0 insertions, 0 deletions