mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-12 08:48:48 +00:00
Btrfs: don't wait around for new log writers on an SSD
Waiting on spindles improves performance, but ssds want all the IO as quickly as we can push it down. Signed-off-by: Chris Mason <chris.mason@fusionio.com>
This commit is contained in:
parent
28a33cbc24
commit
e39e64ac0c
@ -1330,7 +1330,8 @@ int btrfs_commit_transaction(struct btrfs_trans_handle *trans,
|
|||||||
spin_unlock(&root->fs_info->trans_lock);
|
spin_unlock(&root->fs_info->trans_lock);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (now < cur_trans->start_time || now - cur_trans->start_time < 1)
|
if (!btrfs_test_opt(root, SSD) &&
|
||||||
|
(now < cur_trans->start_time || now - cur_trans->start_time < 1))
|
||||||
should_grow = 1;
|
should_grow = 1;
|
||||||
|
|
||||||
do {
|
do {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user