projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
567a45e
)
Btrfs: unplug every once and a while
author
Chris Mason
<chris.mason@oracle.com>
Thu, 15 Dec 2011 20:38:41 +0000
(15:38 -0500)
committer
Chris Mason
<chris.mason@oracle.com>
Thu, 15 Dec 2011 20:38:41 +0000
(15:38 -0500)
The btrfs io submission threads can build up massive plug lists. This
keeps things more reasonable so we don't hand over huge dumps of IO at
once.
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/volumes.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/btrfs/volumes.c
b/fs/btrfs/volumes.c
index 91ea57a1474ac38644a5d5bb2612b6b10048c3ce..f4b839fd3c9dd5cd854cb7bada4e3831d8ea1713 100644
(file)
--- a/
fs/btrfs/volumes.c
+++ b/
fs/btrfs/volumes.c
@@
-295,6
+295,12
@@
loop_lock:
btrfs_requeue_work(&device->work);
goto done;
}
+ /* unplug every 64 requests just for good measure */
+ if (batch_run % 64 == 0) {
+ blk_finish_plug(&plug);
+ blk_start_plug(&plug);
+ sync_pending = 0;
+ }
}
cond_resched();